JS rebuild

This commit is contained in:
James Cole
2023-08-01 10:26:09 +02:00
parent e61a433999
commit 3352c2cf3c
5 changed files with 721 additions and 20 deletions

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);