mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-11 15:36:48 +02:00
Fix #15 : Applied group filter is not removed if the group is deleted
This commit is contained in:
parent
a6694f7723
commit
2dba3e9324
@ -102,6 +102,13 @@
|
|||||||
|
|
||||||
// Remove the deleted group from the collection
|
// Remove the deleted group from the collection
|
||||||
this.groups = this.groups.filter(a => a.id !== id)
|
this.groups = this.groups.filter(a => a.id !== id)
|
||||||
|
|
||||||
|
// Reset persisted group filter to 'All' (groupId=0)
|
||||||
|
if( parseInt(this.$root.appSettings.activeGroup) === id ) {
|
||||||
|
this.axios.post('/api/settings/options', { activeGroup: 0 }).then(response => {
|
||||||
|
this.$root.appSettings.activeGroup = 0
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user