mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Remove logging
This commit is contained in:
parent
1d6e05f7cf
commit
27c90bd217
@ -239,7 +239,7 @@ export default {
|
||||
axios.post(url, submission)
|
||||
.then(response => {
|
||||
this.errors = lodashClonedeep(this.defaultErrors);
|
||||
console.log('success!');
|
||||
// console.log('success!');
|
||||
this.returnedId = parseInt(response.data.data.id);
|
||||
this.returnedTitle = response.data.data.attributes.name;
|
||||
this.successMessage = this.$t('firefly.stored_new_account_js', {ID: this.returnedId, name: this.returnedTitle});
|
||||
|
@ -253,7 +253,7 @@ export default {
|
||||
let parts = pathName.split('/');
|
||||
this.type = parts[parts.length - 1];
|
||||
this.perPage = this.listPageSize ?? 51;
|
||||
console.log('Per page: ' + this.perPage);
|
||||
// console.log('Per page: ' + this.perPage);
|
||||
|
||||
let params = new URLSearchParams(window.location.search);
|
||||
this.currentPage = params.get('page') ? parseInt(params.get('page')) : 1;
|
||||
@ -369,9 +369,9 @@ export default {
|
||||
this.fields.push({key: 'menu', label: ' ', sortable: false});
|
||||
},
|
||||
getAccountList: function () {
|
||||
console.log('getAccountList()');
|
||||
// console.log('getAccountList()');
|
||||
if (this.indexReady && !this.loading && !this.downloaded) {
|
||||
console.log('Index ready, not loading and not already downloaded. Reset.');
|
||||
// console.log('Index ready, not loading and not already downloaded. Reset.');
|
||||
this.loading = true;
|
||||
this.perPage = this.listPageSize ?? 51;
|
||||
this.accounts = [];
|
||||
@ -379,13 +379,13 @@ export default {
|
||||
this.downloadAccountList(1);
|
||||
}
|
||||
if (this.indexReady && !this.loading && this.downloaded) {
|
||||
console.log('Index ready, not loading and not downloaded.');
|
||||
// console.log('Index ready, not loading and not downloaded.');
|
||||
this.loading = true;
|
||||
this.filterAccountList();
|
||||
}
|
||||
},
|
||||
downloadAccountList: function (page) {
|
||||
console.log('downloadAccountList(' + page + ')');
|
||||
// console.log('downloadAccountList(' + page + ')');
|
||||
configureAxios().then(async (api) => {
|
||||
api.get('./api/v1/accounts?type=' + this.type + '&page=' + page + '&key=' + this.cacheKey)
|
||||
.then(response => {
|
||||
@ -407,7 +407,7 @@ export default {
|
||||
});
|
||||
},
|
||||
filterAccountListAndReturn: function (allAccounts) {
|
||||
console.log('filterAccountListAndReturn()');
|
||||
// console.log('filterAccountListAndReturn()');
|
||||
let accounts = [];
|
||||
for (let i in allAccounts) {
|
||||
if (allAccounts.hasOwnProperty(i) && /^0$|^[1-9]\d*$/.test(i) && i <= 4294967294) {
|
||||
@ -461,7 +461,7 @@ export default {
|
||||
},
|
||||
parsePages: function (data) {
|
||||
this.total = parseInt(data.pagination.total);
|
||||
console.log('Total is now ' + this.total);
|
||||
// console.log('Total is now ' + this.total);
|
||||
},
|
||||
// parseAccountsAndReturn: function (data) {
|
||||
// console.log('In parseAccountsAndReturn()');
|
||||
|
@ -102,7 +102,7 @@ Vue.component('date-picker', DatePicker)
|
||||
export default {
|
||||
name: "Calendar",
|
||||
created() {
|
||||
console.log('Now in calendar created');
|
||||
// console.log('Now in calendar created');
|
||||
this.ready = true;
|
||||
this.locale = localStorage.locale ?? 'en-US';
|
||||
},
|
||||
@ -129,9 +129,9 @@ export default {
|
||||
],
|
||||
),
|
||||
resetDate: function () {
|
||||
console.log('Reset date to');
|
||||
console.log(this.defaultStart);
|
||||
console.log(this.defaultEnd);
|
||||
// console.log('Reset date to');
|
||||
// console.log(this.defaultStart);
|
||||
// console.log(this.defaultEnd);
|
||||
this.range.start = this.defaultStart;
|
||||
this.range.end = this.defaultEnd;
|
||||
this.setStart(this.defaultStart);
|
||||
@ -512,7 +512,7 @@ export default {
|
||||
},
|
||||
generatePeriods: function () {
|
||||
this.periods = [];
|
||||
console.log('The view range is "' + this.viewRange + '".');
|
||||
// console.log('The view range is "' + this.viewRange + '".');
|
||||
switch (this.viewRange) {
|
||||
case '1D':
|
||||
this.generateDaily();
|
||||
|
Loading…
Reference in New Issue
Block a user