1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

feat(UI): new connection add panel

This commit is contained in:
2021-07-08 17:43:33 +02:00
parent 9af71a6e34
commit 8cd76e711c
10 changed files with 545 additions and 22 deletions

View File

@ -49,7 +49,8 @@ export default {
},
computed: {
...mapGetters({
getConnectionName: 'connections/getConnectionName'
getConnectionName: 'connections/getConnectionName',
selectedWorkspace: 'workspaces/getSelected'
}),
connectionName () {
return this.getConnectionName(this.contextConnection.uid);
@ -57,9 +58,12 @@ export default {
},
methods: {
...mapActions({
deleteConnection: 'connections/deleteConnection'
deleteConnection: 'connections/deleteConnection',
selectWorkspace: 'workspaces/selectWorkspace'
}),
confirmDeleteConnection () {
if (this.selectedWorkspace === this.contextConnection.uid)
this.selectWorkspace();
this.deleteConnection(this.contextConnection);
this.closeContext();
},