Various new stuff

This commit is contained in:
James Cole
2022-07-21 16:41:28 +02:00
parent eb8f595541
commit 20ab457222
10 changed files with 192 additions and 41 deletions

View File

@@ -11,7 +11,7 @@
},
"dependencies": {
"@popperjs/core": "^2.11.2",
"@quasar/extras": "^1.14.2",
"@quasar/extras": "^1.14.3",
"apexcharts": "^3.32.1",
"axios": "^0.21.1",
"axios-cache-adapter": "^2.7.3",

View File

@@ -23,7 +23,11 @@
<q-card bordered>
<q-item>
<q-item-section>
<q-item-label><strong>{{ accountName }}</strong> (balance)</q-item-label>
<q-item-label><strong>{{ accountName }}</strong>
<span v-if="accountCurrencyCode !== ''">
({{ formatAmount(accountCurrencyCode,accountBalance) }})
</span>
</q-item-label>
</q-item-section>
</q-item>
<q-separator/>
@@ -110,6 +114,8 @@ export default {
store: null,
accountName: '',
transactions: [],
accountCurrencyCode: '',
accountBalance: 0.0
}
},
mounted() {
@@ -135,7 +141,10 @@ export default {
(new Get).get(this.accountId).then((response) => this.parseAccount(response.data));
},
parseAccount: function (data) {
console.log(data.data.attributes);
this.accountName = data.data.attributes.name;
this.accountBalance = data.data.attributes.current_balance;
this.accountCurrencyCode = data.data.attributes.currency_code;
},
getTransactions: function () {
if (null !== this.store.getRange.start && null !== this.store.getRange.end) {

View File

@@ -1252,10 +1252,10 @@
core-js "^3.6.5"
core-js-compat "^3.6.5"
"@quasar/extras@^1.14.2":
version "1.14.2"
resolved "https://registry.yarnpkg.com/@quasar/extras/-/extras-1.14.2.tgz#a5382ec83ddf967f8bc17d0dbe6ef88ddb31b796"
integrity sha512-F9T1aIhRIiuJeuxPCu2CBlPj5js6mBZWQOAHHyVlreNa5qhVEHhr/9GfljG6RTnjvTNOjJraTl0hi8g0IuUfLw==
"@quasar/extras@^1.14.3":
version "1.14.3"
resolved "https://registry.yarnpkg.com/@quasar/extras/-/extras-1.14.3.tgz#2a4d7a2f773a789ca43e3a02d5b797c9d2888884"
integrity sha512-OHyR/pfW0R8E5DvnsV1wg9ISnLL/yXHyOMZsqPY3gUtmfdF2634x2osdVg4YpBYW29vIQeV5feGWGIx8nuprdA==
"@quasar/fastclick@1.1.5":
version "1.1.5"