mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
clear selection when fetching identities
This commit is contained in:
@@ -201,6 +201,7 @@ export default {
|
||||
fetchIdentities () {
|
||||
identities.getAll().then(resp => {
|
||||
this.identities = resp.data
|
||||
this.selected = []
|
||||
})
|
||||
},
|
||||
getMenuItems (item) {
|
||||
@@ -228,6 +229,7 @@ export default {
|
||||
getActionMenuItems () {
|
||||
const result = []
|
||||
result.push({ label: this.$gettext('Delete'), icon: 'mdi-delete-outline', onClick: this.deleteIdentities, color: 'red' })
|
||||
result.push({ label: 'Reload', icon: 'mdi-reload', onClick: this.fetchIdentities })
|
||||
return result
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user