Redirect to dashboard and remove budget on delete

This commit is contained in:
2022-01-31 16:12:17 +00:00
parent 8e2a62929e
commit 34b9c14419
2 changed files with 38 additions and 31 deletions

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", {