From 206f32a7931464aeba9cd53b3b1312100ebecd42 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 19 Dec 2020 00:19:12 +0100 Subject: [PATCH] Fix deleting a saved filter --- src/views/filters/EditSavedFilter.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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)) + }, }, }