Rebuild frontend.

This commit is contained in:
James Cole
2021-08-28 16:30:08 +02:00
parent d8a7bb4dc7
commit a13af41e9f
41 changed files with 173 additions and 295 deletions

View File

@@ -89,7 +89,7 @@
<script>
import TransactionListLarge from "../transactions/TransactionListLarge";
import format from "date-fns/format";
import {mapGetters, mapMutations} from "vuex";
import {mapGetters} from "vuex";
export default {
name: "Show",
@@ -100,44 +100,49 @@ export default {
return null !== this.start && null !== this.end && null !== this.listPageSize && this.ready;
},
},
data() {
return {
accountId: 0,
transactions: [],
ready: false,
currentPage: 1,
perPage: 51,
locale: 'en-US'
}
},
created() {
this.ready = true;
let parts = window.location.pathname.split('/');
this.accountId = parseInt(parts[parts.length - 1]);
this.perPage = this.listPageSize ?? 51;
let params = new URLSearchParams(window.location.search);
this.currentPage = params.get('page') ? parseInt(params.get('page')) : 1;
//this.getTransactions();
this.getTransactions();
},
components: {TransactionListLarge},
methods: {
getTransactions: function() {
getTransactions: function () {
console.log('goooooo');
let startStr = format(this.start, 'y-MM-dd');
let endStr = format(this.end, 'y-MM-dd');
axios.get('./api/v1/accounts/' + this.accountId + '/transactions?page=1&limit=10&start=' + startStr + '&end=' + endStr)
.then(response => {
this.transactions = response.data.data;
//this.loading = false;
//this.error = false;
}
);
if (this.showReady) {
let startStr = format(this.start, 'y-MM-dd');
let endStr = format(this.end, 'y-MM-dd');
axios.get('./api/v1/accounts/' + this.accountId + '/transactions?page=1&limit=' + this.perPage + '&start=' + startStr + '&end=' + endStr)
.then(response => {
this.transactions = response.data.data;
//this.loading = false;
//this.error = false;
}
);
}
}
},
watch: {
showReady: function (value) {
if (true === value) {
this.getTransactions();
}
start: function () {
this.getTransactions();
},
end: function () {
this.getTransactions();
},
}

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "\u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u043d\u043e",
"repeat_freq_monthly": "\u043c\u0435\u0441\u0435\u0447\u043d\u043e",
"repeat_freq_weekly": "\u0435\u0436\u0435\u0441\u0435\u0434\u043c\u0438\u0447\u043d\u043e",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0430\u0439 \u0437\u0430\u0434\u044a\u043b\u0436\u0435\u043d\u0438\u0435",
"update_expense_account": "\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0430\u0439 \u0441\u043c\u0435\u0442\u043a\u0430 \u0437\u0430 \u0440\u0430\u0437\u0445\u043e\u0434\u0438",
"update_revenue_account": "\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0430\u0439 \u0441\u043c\u0435\u0442\u043a\u0430 \u0437\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u0438",
"update_undefined_account": "Update account",
"update_asset_account": "\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0430\u0439 \u0441\u043c\u0435\u0442\u043a\u0430 \u0437\u0430 \u0430\u043a\u0442\u0438\u0432\u0438",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "\u041a\u0430\u0441\u0438\u0447\u043a\u0430",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "\u010dtvrtletn\u011b",
"repeat_freq_monthly": "m\u011bs\u00ed\u010dn\u011b",
"repeat_freq_weekly": "t\u00fddn\u011b",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "Aktualizovat z\u00e1vazek",
"update_expense_account": "Aktualizovat v\u00fddajov\u00fd \u00fa\u010det",
"update_revenue_account": "Aktualizovat p\u0159\u00edjmov\u00fd \u00fa\u010det",
"update_undefined_account": "Update account",
"update_asset_account": "Aktualizovat v\u00fddajov\u00fd \u00fa\u010det",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "Pokladni\u010dka",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "viertelj\u00e4hrlich",
"repeat_freq_monthly": "monatlich",
"repeat_freq_weekly": "w\u00f6chentlich",
"credit_card_type_monthlyFull": "Vollst\u00e4ndige Zahlung jeden Monat",
"update_liabilities_account": "Verbindlichkeit aktualisieren",
"update_expense_account": "Ausgabenkonto aktualisieren",
"update_revenue_account": "Einnahmenkonto aktualisieren",
"update_undefined_account": "Konto aktualisieren",
"update_asset_account": "Bestandskonto aktualisieren",
"updated_account_js": "Konto \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\" aktualisiert."
"credit_card_type_monthlyFull": "Vollst\u00e4ndige Zahlung jeden Monat"
},
"list": {
"piggy_bank": "Sparschwein",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "\u03c4\u03c1\u03b9\u03bc\u03b7\u03bd\u03b9\u03b1\u03af\u03c9\u03c2",
"repeat_freq_monthly": "\u03bc\u03b7\u03bd\u03b9\u03b1\u03af\u03c9\u03c2",
"repeat_freq_weekly": "\u03b5\u03b2\u03b4\u03bf\u03bc\u03b1\u03b4\u03b9\u03b1\u03af\u03c9\u03c2",
"credit_card_type_monthlyFull": "\u0395\u03be\u03cc\u03c6\u03bb\u03b7\u03c3\u03b7 \u03ba\u03ac\u03b8\u03b5 \u03bc\u03ae\u03bd\u03b1",
"update_liabilities_account": "\u0395\u03bd\u03b7\u03bc\u03ad\u03c1\u03c9\u03c3\u03b7 \u03c5\u03c0\u03bf\u03c7\u03c1\u03ad\u03c9\u03c3\u03b7\u03c2",
"update_expense_account": "\u0395\u03bd\u03b7\u03bc\u03ad\u03c1\u03c9\u03c3\u03b7 \u03bb\u03bf\u03b3\u03b1\u03c1\u03b9\u03b1\u03c3\u03bc\u03bf\u03cd \u03b4\u03b1\u03c0\u03b1\u03bd\u03ce\u03bd",
"update_revenue_account": "\u0395\u03bd\u03b7\u03bc\u03ad\u03c1\u03c9\u03c3\u03b7 \u03bb\u03bf\u03b3\u03b1\u03c1\u03b9\u03b1\u03c3\u03bc\u03bf\u03cd \u03b5\u03c3\u03cc\u03b4\u03c9\u03bd",
"update_undefined_account": "\u0395\u03bd\u03b7\u03bc\u03ad\u03c1\u03c9\u03c3\u03b7 \u03bb\u03bf\u03b3\u03b1\u03c1\u03b9\u03b1\u03c3\u03bc\u03bf\u03cd",
"update_asset_account": "\u0395\u03bd\u03b7\u03bc\u03ad\u03c1\u03c9\u03c3\u03b7 \u03bb\u03bf\u03b3\u03b1\u03c1\u03b9\u03b1\u03c3\u03bc\u03bf\u03cd \u03ba\u03b5\u03c6\u03b1\u03bb\u03b1\u03af\u03bf\u03c5",
"updated_account_js": "\u0395\u03bd\u03b7\u03bc\u03b5\u03c1\u03ce\u03b8\u03b7\u03ba\u03b5 \u03bf \u03bb\u03bf\u03b3\u03b1\u03c1\u03b9\u03b1\u03c3\u03bc\u03cc\u03c2 \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "\u0395\u03be\u03cc\u03c6\u03bb\u03b7\u03c3\u03b7 \u03ba\u03ac\u03b8\u03b5 \u03bc\u03ae\u03bd\u03b1"
},
"list": {
"piggy_bank": "\u039a\u03bf\u03c5\u03bc\u03c0\u03b1\u03c1\u03ac\u03c2",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "quarterly",
"repeat_freq_monthly": "monthly",
"repeat_freq_weekly": "weekly",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "Update liability",
"update_expense_account": "Update expense account",
"update_revenue_account": "Update revenue account",
"update_undefined_account": "Update account",
"update_asset_account": "Update asset account",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "Piggy bank",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "quarterly",
"repeat_freq_monthly": "monthly",
"repeat_freq_weekly": "weekly",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "Update liability",
"update_expense_account": "Update expense account",
"update_revenue_account": "Update revenue account",
"update_undefined_account": "Update account",
"update_asset_account": "Update asset account",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "Piggy bank",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "trimestralmente",
"repeat_freq_monthly": "mensualmente",
"repeat_freq_weekly": "semanalmente",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "Actualizar pasivo",
"update_expense_account": "Actualizar cuenta de gastos",
"update_revenue_account": "Actualizar cuenta de ingresos",
"update_undefined_account": "Update account",
"update_asset_account": "Actualizar cuenta de activos",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "Alcancilla",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "nelj\u00e4nnesvuosittain",
"repeat_freq_monthly": "kuukausittain",
"repeat_freq_weekly": "viikoittain",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "P\u00e4ivit\u00e4 vastuu",
"update_expense_account": "P\u00e4ivit\u00e4 kulutustili",
"update_revenue_account": "P\u00e4ivit\u00e4 tuottotili",
"update_undefined_account": "Update account",
"update_asset_account": "P\u00e4ivit\u00e4 omaisuustili",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "S\u00e4\u00e4st\u00f6possu",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "trimestriel",
"repeat_freq_monthly": "mensuel",
"repeat_freq_weekly": "hebdomadaire",
"credit_card_type_monthlyFull": "Paiement complet tous les mois",
"update_liabilities_account": "Mettre \u00e0 jour le passif",
"update_expense_account": "Mettre \u00e0 jour le compte de d\u00e9penses",
"update_revenue_account": "Mettre \u00e0 jour le compte de recettes",
"update_undefined_account": "Mettre \u00e0 jour le compte",
"update_asset_account": "Mettre \u00e0 jour le compte d\u2019actif",
"updated_account_js": "Compte \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\" mis \u00e0 jour."
"credit_card_type_monthlyFull": "Paiement complet tous les mois"
},
"list": {
"piggy_bank": "Tirelire",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "negyed\u00e9ves",
"repeat_freq_monthly": "havi",
"repeat_freq_weekly": "heti",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "K\u00f6telezetts\u00e9g friss\u00edt\u00e9se",
"update_expense_account": "K\u00f6lts\u00e9gsz\u00e1mla friss\u00edt\u00e9se",
"update_revenue_account": "J\u00f6vedelemsz\u00e1mla friss\u00edt\u00e9se",
"update_undefined_account": "Update account",
"update_asset_account": "Eszk\u00f6zsz\u00e1mla friss\u00edt\u00e9se",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "Malacpersely",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "trimestralmente",
"repeat_freq_monthly": "mensilmente",
"repeat_freq_weekly": "settimanalmente",
"credit_card_type_monthlyFull": "Pagamento intero ogni mese",
"update_liabilities_account": "Aggiorna passivit\u00e0",
"update_expense_account": "Aggiorna conto uscite",
"update_revenue_account": "Aggiorna conto entrate",
"update_undefined_account": "Aggiorna conto",
"update_asset_account": "Aggiorna conto attivit\u00e0",
"updated_account_js": "Conto \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\" aggiornato."
"credit_card_type_monthlyFull": "Pagamento intero ogni mese"
},
"list": {
"piggy_bank": "Salvadanaio",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "kvartalsvis",
"repeat_freq_monthly": "m\u00e5nedlig",
"repeat_freq_weekly": "ukentlig",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "Oppdater gjeld",
"update_expense_account": "Oppdater utgiftskonto",
"update_revenue_account": "Oppdater inntektskonto",
"update_undefined_account": "Update account",
"update_asset_account": "Oppdater aktivakonto",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "Sparegris",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "elk kwartaal",
"repeat_freq_monthly": "maandelijks",
"repeat_freq_weekly": "wekelijks",
"credit_card_type_monthlyFull": "Volledige betaling elke maand",
"update_liabilities_account": "Update passiva",
"update_expense_account": "Wijzig crediteur",
"update_revenue_account": "Wijzig debiteur",
"update_undefined_account": "Account bijwerken",
"update_asset_account": "Wijzig betaalrekening",
"updated_account_js": "Account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\" bijgewerkt."
"credit_card_type_monthlyFull": "Volledige betaling elke maand"
},
"list": {
"piggy_bank": "Spaarpotje",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "kwartalnie",
"repeat_freq_monthly": "miesi\u0119cznie",
"repeat_freq_weekly": "tygodniowo",
"credit_card_type_monthlyFull": "Pe\u0142na p\u0142atno\u015b\u0107 co miesi\u0105c",
"update_liabilities_account": "Modyfikuj zobowi\u0105zanie",
"update_expense_account": "Aktualizuj konto wydatk\u00f3w",
"update_revenue_account": "Aktualizuj konto przychod\u00f3w",
"update_undefined_account": "Update account",
"update_asset_account": "Aktualizuj konto aktyw\u00f3w",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Pe\u0142na p\u0142atno\u015b\u0107 co miesi\u0105c"
},
"list": {
"piggy_bank": "Skarbonka",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "trimestral",
"repeat_freq_monthly": "mensal",
"repeat_freq_weekly": "semanal",
"credit_card_type_monthlyFull": "Pagamento completo todo m\u00eas",
"update_liabilities_account": "Atualizar passivo",
"update_expense_account": "Atualizar conta de despesas",
"update_revenue_account": "Atualizar conta de receita",
"update_undefined_account": "Atualizar conta",
"update_asset_account": "Atualizar de conta de ativo",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Pagamento completo todo m\u00eas"
},
"list": {
"piggy_bank": "Cofrinho",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "trimestral",
"repeat_freq_monthly": "mensalmente",
"repeat_freq_weekly": "semanalmente",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "Actualizar passivo",
"update_expense_account": "Alterar conta de despesas",
"update_revenue_account": "Alterar conta de receitas",
"update_undefined_account": "Update account",
"update_asset_account": "Actualizar conta de activos",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "Mealheiro",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "trimestrial",
"repeat_freq_monthly": "lunar",
"repeat_freq_weekly": "s\u0103pt\u0103m\u00e2nal",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "Actualiza\u021bi provizionul",
"update_expense_account": "Actualiza\u021bi cont de cheltuieli",
"update_revenue_account": "Actualiza\u021bi cont de venituri",
"update_undefined_account": "Update account",
"update_asset_account": "Actualiza\u021bi contul de active",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "Pu\u0219culi\u021b\u0103",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "\u0440\u0430\u0437 \u0432 \u043a\u0432\u0430\u0440\u0442\u0430\u043b",
"repeat_freq_monthly": "\u0435\u0436\u0435\u043c\u0435\u0441\u044f\u0447\u043d\u043e",
"repeat_freq_weekly": "\u0435\u0436\u0435\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u043e",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u043e\u043b\u0433\u043e\u0432\u043e\u0439 \u0441\u0447\u0451\u0442",
"update_expense_account": "\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0447\u0451\u0442 \u0440\u0430\u0441\u0445\u043e\u0434\u0430",
"update_revenue_account": "\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0447\u0451\u0442 \u0434\u043e\u0445\u043e\u0434\u0430",
"update_undefined_account": "Update account",
"update_asset_account": "\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0447\u0451\u0442",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "\u041a\u043e\u043f\u0438\u043b\u043a\u0430",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "\u0161tvr\u0165ro\u010dne",
"repeat_freq_monthly": "mesa\u010dne",
"repeat_freq_weekly": "t\u00fd\u017edenne",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "Upravi\u0165 z\u00e1v\u00e4zok",
"update_expense_account": "Upravi\u0165 v\u00fddavkov\u00fd \u00fa\u010det",
"update_revenue_account": "Upravi\u0165 pr\u00edjmov\u00fd \u00fa\u010det",
"update_undefined_account": "Update account",
"update_asset_account": "Upravi\u0165 v\u00fddajov\u00fd \u00fa\u010det",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "Pokladni\u010dka",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "kvartal",
"repeat_freq_monthly": "m\u00e5nadsvis",
"repeat_freq_weekly": "veckovis",
"credit_card_type_monthlyFull": "Full betalning varje m\u00e5nad",
"update_liabilities_account": "Uppdatera skuld",
"update_expense_account": "Uppdatera utgiftskonto",
"update_revenue_account": "Uppdatera int\u00e4ktskonto",
"update_undefined_account": "Update account",
"update_asset_account": "Uppdatera tillg\u00e5ngskonto",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full betalning varje m\u00e5nad"
},
"list": {
"piggy_bank": "Spargris",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "h\u00e0ng qu\u00fd",
"repeat_freq_monthly": "h\u00e0ng th\u00e1ng",
"repeat_freq_weekly": "h\u00e0ng tu\u1ea7n",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "C\u1eadp nh\u1eadt n\u1ee3",
"update_expense_account": "C\u1eadp nh\u1eadt t\u00e0i kho\u1ea3n chi ph\u00ed",
"update_revenue_account": "C\u1eadp nh\u1eadt t\u00e0i kho\u1ea3n doanh thu",
"update_undefined_account": "Update account",
"update_asset_account": "C\u1eadp nh\u1eadt t\u00e0i kho\u1ea3n",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "\u1ed0ng heo con",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "\u6bcf\u5b63",
"repeat_freq_monthly": "\u6bcf\u6708",
"repeat_freq_weekly": "\u6bcf\u5468",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "\u66f4\u65b0\u503a\u52a1\u8d26\u6237",
"update_expense_account": "\u66f4\u65b0\u652f\u51fa\u8d26\u6237",
"update_revenue_account": "\u66f4\u65b0\u6536\u5165\u8d26\u6237",
"update_undefined_account": "Update account",
"update_asset_account": "\u66f4\u65b0\u8d44\u4ea7\u8d26\u6237",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "\u5b58\u94b1\u7f50",

View File

@@ -169,13 +169,7 @@
"repeat_freq_quarterly": "\u6bcf\u5b63",
"repeat_freq_monthly": "\u6bcf\u6708",
"repeat_freq_weekly": "\u6bcf\u9031",
"credit_card_type_monthlyFull": "Full payment every month",
"update_liabilities_account": "\u66f4\u65b0\u50b5\u52d9",
"update_expense_account": "\u66f4\u65b0\u652f\u51fa\u5e33\u6236",
"update_revenue_account": "\u66f4\u65b0\u6536\u5165\u5e33\u6236",
"update_undefined_account": "Update account",
"update_asset_account": "\u66f4\u65b0\u8cc7\u7522\u5e33\u6236",
"updated_account_js": "Updated account \"<a href=\"accounts\/show\/{ID}\">{title}<\/a>\"."
"credit_card_type_monthlyFull": "Full payment every month"
},
"list": {
"piggy_bank": "\u5c0f\u8c6c\u64b2\u6eff",

View File

@@ -36,5 +36,16 @@ const app = new Vue({
store,
render(createElement) {
return createElement(Show, {props: props});
}
},
beforeCreate() {
// See reference nr. 10
this.$store.commit('initialiseStore');
this.$store.dispatch('updateCurrencyPreference');
// init the new root store (dont care about results)
this.$store.dispatch('root/initialiseStore');
// also init the dashboard store.
this.$store.dispatch('dashboard/index/initialiseStore');
},
}).$mount('#accounts_show');