summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModuleDialog.vue
diff options
context:
space:
mode:
authorUdo Walter2018-11-26 20:12:31 +0100
committerUdo Walter2018-11-26 20:12:31 +0100
commit82648439b945cc5d049886f7e79c2f0dd9d14ff9 (patch)
treeebeb33ba47bef73306d004b230726ddad5d16bfa /webapp/src/components/GroupModuleDialog.vue
parent[webapp] small bugfix (diff)
downloadbas-82648439b945cc5d049886f7e79c2f0dd9d14ff9.tar.gz
bas-82648439b945cc5d049886f7e79c2f0dd9d14ff9.tar.xz
bas-82648439b945cc5d049886f7e79c2f0dd9d14ff9.zip
[webapp+server] Add first implementation of a websocket to alert webclients of events
and to synchronize notification across multiple webapp instances of the same user
Diffstat (limited to 'webapp/src/components/GroupModuleDialog.vue')
-rw-r--r--webapp/src/components/GroupModuleDialog.vue34
1 files changed, 33 insertions, 1 deletions
diff --git a/webapp/src/components/GroupModuleDialog.vue b/webapp/src/components/GroupModuleDialog.vue
index 7c0905d..8f88f29 100644
--- a/webapp/src/components/GroupModuleDialog.vue
+++ b/webapp/src/components/GroupModuleDialog.vue
@@ -15,6 +15,20 @@
"client": "Add clients | Add this client? | Add these {0} clients?"
}
},
+ "success": {
+ "delete": {
+ "client": "Successfully deleted client | Successfully deleted {0} clients",
+ "group": "Successfully deleted group | Successfully deleted {0} groups"
+ },
+ "remove": {
+ "client": "Successfully removed client | Successfully removed {0} clients",
+ "group": "Successfully removed group | Successfully removed {0} groups"
+ },
+ "add": {
+ "client": "Successfully added client | Successfully added {0} clients",
+ "group": "Successfully added group | Successfully added {0} groups"
+ }
+ },
"deletePermanently": {
"group": "Permanently delete group | Permanently delete groups",
"client": "Permanently delete client | Permanently delete clients"
@@ -38,6 +52,20 @@
"client": "Clienten hinzufügen | Diesen Clienten hinzufügen? | Diese {0} Clienten hinzufügen?"
}
},
+ "success": {
+ "delete": {
+ "client": "Client erfolgreich gelöscht | {0} Clienten erfolgreich gelöscht",
+ "group": "Gruppe erfolgreich gelöscht | {0} Gruppen erfolgreich gelöscht"
+ },
+ "remove": {
+ "client": "Client erfolgreich entfernt | {0} Clienten erfolgreich entfernt",
+ "group": "Gruppe erfolgreich entfernt | {0} Gruppen erfolgreich entfernt"
+ },
+ "add": {
+ "client": "Client erfolgreich hinzugefügt | {0} Clienten erfolgreich hinzugefügt",
+ "group": "Gruppe erfolgreich hinzugefügt | {0} Gruppen erfolgreich hinzugefügt"
+ }
+ },
"deletePermanently": {
"group": "Gruppe dauerhaft löschen | Gruppen dauerhaft löschen",
"client": "Client dauerhaft löschen | Clienten dauerhaft löschen"
@@ -157,7 +185,11 @@ export default {
'remove': { 'group': 'removeSubroups', 'client': 'removeClients' },
'add': { 'group': 'addSubgroups', 'client': 'addClients' }
}
- var data = { ...this.dialog.info }
+ var count = this.action === 'add' ? this.selected.length : this.dialog.info.selected.length
+ var data = { ...this.dialog.info, callback: () => this.$snackbar({
+ color: 'success',
+ text: this.$tc('success.' + this.action + '.' + this.dialog.info.type, count, [count])
+ }) }
if (this.action === 'add') data.selected = this.selected
this.$store.dispatch('groups/' + actionMap[this.action][this.dialog.info.type], data)
this.setDialog({ show: false })