diff --git a/src/views/filters/EditSavedFilter.vue b/src/views/filters/EditSavedFilter.vue index 967134a2..49fa9ba7 100644 --- a/src/views/filters/EditSavedFilter.vue +++ b/src/views/filters/EditSavedFilter.vue @@ -72,7 +72,7 @@ Delete this saved filter

@@ -152,6 +152,15 @@ export default { }) .catch(e => this.error(e, this)) }, + deleteSavedFilter() { + this.filterService.delete(this.filter) + .then(() => { + this.$store.dispatch('namespaces/loadNamespaces') + this.success({message: 'The filter was deleted successfully.'}, this) + this.$router.push({name: 'namespaces.index'}) + }) + .catch(e => this.error(e, this)) + }, }, }