Redirect to dashboard and remove budget on delete
This commit is contained in:
@ -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", {
|
||||
|
Reference in New Issue
Block a user