Implement clear

This commit is contained in:
2022-01-26 21:38:41 +00:00
parent 430c4d52da
commit 0e438e0244
2 changed files with 9 additions and 6 deletions

View File

@ -24,7 +24,12 @@ export default {
this.$data.transactionsFile = e.target.files[0];
},
clearBudget() {
// <a href="/budget/{{$store.getters.CurrentBudget.ID}}/settings/clear">Clear budget</a>
fetch("/api/v1/budget/" + this.$store.getters.CurrentBudget.ID + "/settings/clear", {
method: "POST",
headers: {
'Authorization': 'Bearer ' + this.$store.state.Session.Token
},
})
},
cleanNegative() {
// <a href="/budget/{{.Budget.ID}}/settings/clean-negative">Fix all historic negative category-balances</a>