JS rebuild

This commit is contained in:
James Cole 2023-08-01 10:26:09 +02:00
parent e61a433999
commit 3352c2cf3c
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
5 changed files with 721 additions and 20 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -24,7 +24,7 @@
"src": "node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2"
},
"resources/assets/v2/dashboard.js": {
"file": "assets/dashboard-e8bd1ddb.js",
"file": "assets/dashboard-157793a8.js",
"isEntry": true,
"src": "resources/assets/v2/dashboard.js"
},

View File

@ -35,9 +35,11 @@ function loadPage(comps) {
// wait for load until bootstrapped event is received.
document.addEventListener('firefly-iii-bootstrapped', () => {
console.log('Loaded through event listener.');
loadPage(comps);
});
// or is bootstrapped before event is triggered.
if (window.bootstrapped) {
console.log('Loaded through window variable.');
loadPage(comps);
}

View File

@ -99,10 +99,10 @@ export default () => ({
let current = response.data[i];
let entry = [];
let collection = [];
// use the "native" currency code and use the "converted_entries" as array
// use the "native" currency code and use the "native_entries" as array
if (this.autoConversion) {
window.currencies.push(current.native_code);
collection = current.converted_entries;
collection = current.native_entries;
}
if (!this.autoConversion) {
window.currencies.push(current.currency_code);