Format document
This commit is contained in:
parent
34b9c14419
commit
9c0126b14c
@ -17,7 +17,7 @@ export default {
|
||||
this.$store.commit(TITLE, "Settings")
|
||||
},
|
||||
methods: {
|
||||
gotAssignments(e){
|
||||
gotAssignments(e) {
|
||||
this.$data.assignmentsFile = e.target.files[0];
|
||||
},
|
||||
gotTransactions(e) {
|
||||
@ -56,86 +56,75 @@ export default {
|
||||
|
||||
<template>
|
||||
<v-container>
|
||||
<h1>Danger Zone</h1>
|
||||
<v-row>
|
||||
<v-col cols="12" md="6" xl="3">
|
||||
<v-card>
|
||||
<v-card-header>
|
||||
<v-card-header-text>
|
||||
<v-card-title>
|
||||
Clear Budget
|
||||
</v-card-title>
|
||||
<v-card-subtitle>
|
||||
This removes transactions and assignments to start from scratch. Accounts and categories are kept. Not undoable!
|
||||
</v-card-subtitle>
|
||||
</v-card-header-text>
|
||||
</v-card-header>
|
||||
<v-card-actions class="justify-center">
|
||||
<v-btn @click="clearBudget" color="error">Clear budget</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col cols="12" md="6" xl="3">
|
||||
<v-card>
|
||||
<v-card-header>
|
||||
<v-card-header-text>
|
||||
<v-card-title>
|
||||
Delete Budget
|
||||
</v-card-title>
|
||||
<v-card-subtitle>
|
||||
This deletes the whole bugdet including all transactions, assignments, accounts and categories. Not undoable!
|
||||
</v-card-subtitle>
|
||||
</v-card-header-text>
|
||||
</v-card-header>
|
||||
<v-card-actions class="justify-center">
|
||||
<v-btn @click="deleteBudget" color="error">Delete budget</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col cols="12" md="6" xl="3">
|
||||
<v-card>
|
||||
<v-card-header>
|
||||
<v-card-header-text>
|
||||
<v-card-title>
|
||||
Fix all historic negative category-balances
|
||||
</v-card-title>
|
||||
<v-card-subtitle>
|
||||
This restores YNABs functionality, that would substract any overspent categories' balances from next months inflows.
|
||||
</v-card-subtitle>
|
||||
</v-card-header-text>
|
||||
</v-card-header>
|
||||
<v-card-actions class="justify-center">
|
||||
<v-btn @click="cleanNegative" color="primary">Fix negative</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col cols="12" xl="6">
|
||||
<v-card>
|
||||
<v-card-header>
|
||||
<v-card-header-text>
|
||||
<v-card-title>
|
||||
Import YNAB Budget
|
||||
</v-card-title>
|
||||
</v-card-header-text>
|
||||
</v-card-header>
|
||||
<h1>Danger Zone</h1>
|
||||
<v-row>
|
||||
<v-col cols="12" md="6" xl="3">
|
||||
<v-card>
|
||||
<v-card-header>
|
||||
<v-card-header-text>
|
||||
<v-card-title>Clear Budget</v-card-title>
|
||||
<v-card-subtitle>This removes transactions and assignments to start from scratch. Accounts and categories are kept. Not undoable!</v-card-subtitle>
|
||||
</v-card-header-text>
|
||||
</v-card-header>
|
||||
<v-card-actions class="justify-center">
|
||||
<v-btn @click="clearBudget" color="error">Clear budget</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col cols="12" md="6" xl="3">
|
||||
<v-card>
|
||||
<v-card-header>
|
||||
<v-card-header-text>
|
||||
<v-card-title>Delete Budget</v-card-title>
|
||||
<v-card-subtitle>This deletes the whole bugdet including all transactions, assignments, accounts and categories. Not undoable!</v-card-subtitle>
|
||||
</v-card-header-text>
|
||||
</v-card-header>
|
||||
<v-card-actions class="justify-center">
|
||||
<v-btn @click="deleteBudget" color="error">Delete budget</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col cols="12" md="6" xl="3">
|
||||
<v-card>
|
||||
<v-card-header>
|
||||
<v-card-header-text>
|
||||
<v-card-title>Fix all historic negative category-balances</v-card-title>
|
||||
<v-card-subtitle>This restores YNABs functionality, that would substract any overspent categories' balances from next months inflows.</v-card-subtitle>
|
||||
</v-card-header-text>
|
||||
</v-card-header>
|
||||
<v-card-actions class="justify-center">
|
||||
<v-btn @click="cleanNegative" color="primary">Fix negative</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col cols="12" xl="6">
|
||||
<v-card>
|
||||
<v-card-header>
|
||||
<v-card-header-text>
|
||||
<v-card-title>Import YNAB Budget</v-card-title>
|
||||
</v-card-header-text>
|
||||
</v-card-header>
|
||||
|
||||
<label for="transactions_file">
|
||||
Transaktionen:
|
||||
<input type="file" @change="gotTransactions" accept="text/*" />
|
||||
</label>
|
||||
<br />
|
||||
<label for="assignments_file">
|
||||
Budget:
|
||||
<input type="file" @change="gotAssignments" accept="text/*" />
|
||||
</label>
|
||||
<label for="transactions_file">
|
||||
Transaktionen:
|
||||
<input type="file" @change="gotTransactions" accept="text/*" />
|
||||
</label>
|
||||
<br />
|
||||
<label for="assignments_file">
|
||||
Budget:
|
||||
<input type="file" @change="gotAssignments" accept="text/*" />
|
||||
</label>
|
||||
|
||||
<v-card-actions class="justify-center">
|
||||
<v-btn :disabled="filesIncomplete" @click="ynabImport" color="primary">Importieren</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-card>
|
||||
</v-card>
|
||||
</v-container>
|
||||
<v-card-actions class="justify-center">
|
||||
<v-btn
|
||||
:disabled="filesIncomplete"
|
||||
@click="ynabImport"
|
||||
color="primary"
|
||||
>Importieren</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-card></v-card>
|
||||
</v-container>
|
||||
</template>
|
Loading…
x
Reference in New Issue
Block a user