Redirect to dashboard and remove budget on delete

This commit is contained in:
jacob1123 committed 2022-01-31 16:12:17 +00:00
1 parent 8e2a62929e
commit 34b9c14419
2 files changed
+38 -31

No files matched your search

+3 -1
View File
@@ -29,7 +29,9 @@ export default {
headers: {
'Authorization': 'Bearer ' + this.$store.state.Session.Token
},
})
});
this.$store.commit("deleteBudget", this.$store.getters.CurrentBudget.ID)
this.$router.push("/")
},
clearBudget() {
fetch("/api/v1/budget/" + this.$store.getters.CurrentBudget.ID + "/settings/clear", {