Fix amount for available balance #50

Merged
jacob1123 merged 28 commits from available-balance into master 2022-04-08 22:43:22 +02:00
Showing only changes of commit 23bd12147c - Show all commits

View File

@ -9,6 +9,8 @@ import Button from "../components/SimpleButton.vue";
import { saveAs } from 'file-saver'; import { saveAs } from 'file-saver';
import Input from "../components/Input.vue"; import Input from "../components/Input.vue";
const router = useRouter();
const transactionsFile = ref<File | undefined>(undefined); const transactionsFile = ref<File | undefined>(undefined);
const assignmentsFile = ref<File | undefined>(undefined); const assignmentsFile = ref<File | undefined>(undefined);
@ -39,7 +41,7 @@ function deleteBudget() {
const budgetStore = useSessionStore(); const budgetStore = useSessionStore();
budgetStore.Budgets.delete(CurrentBudgetID.value); budgetStore.Budgets.delete(CurrentBudgetID.value);
useRouter().push("/") router.push("/dashboard")
}; };
function clearBudget() { function clearBudget() {
POST("/budget/" + CurrentBudgetID.value + "/settings/clear", null) POST("/budget/" + CurrentBudgetID.value + "/settings/clear", null)