mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
remove unused code
This commit is contained in:
@@ -403,7 +403,6 @@ export default {
|
|||||||
alwaysShowNav: mdAndUp.value,
|
alwaysShowNav: mdAndUp.value,
|
||||||
showNav: mdAndUp.value,
|
showNav: mdAndUp.value,
|
||||||
showCustomDateRangeDialog: false,
|
showCustomDateRangeDialog: false,
|
||||||
transactionRemoving: {},
|
|
||||||
icons: {
|
icons: {
|
||||||
search: mdiMagnify,
|
search: mdiMagnify,
|
||||||
check: mdiCheck,
|
check: mdiCheck,
|
||||||
@@ -413,7 +412,6 @@ export default {
|
|||||||
dropdownMenu: mdiMenuDown,
|
dropdownMenu: mdiMenuDown,
|
||||||
modifyBalance: mdiPencilBoxOutline,
|
modifyBalance: mdiPencilBoxOutline,
|
||||||
arrowRight: mdiArrowRight,
|
arrowRight: mdiArrowRight,
|
||||||
remove: mdiDeleteOutline,
|
|
||||||
more: mdiDotsVertical
|
more: mdiDotsVertical
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -863,29 +861,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
remove(transaction) {
|
|
||||||
const self = this;
|
|
||||||
|
|
||||||
self.$refs.confirmDialog.open('Are you sure you want to delete this transaction?').then(() => {
|
|
||||||
self.updating = true;
|
|
||||||
self.transactionRemoving[transaction.id] = true;
|
|
||||||
|
|
||||||
self.transactionsStore.deleteTransaction({
|
|
||||||
transaction: transaction,
|
|
||||||
defaultCurrency: self.defaultCurrency
|
|
||||||
}).then(() => {
|
|
||||||
self.updating = false;
|
|
||||||
self.transactionRemoving[transaction.id] = false;
|
|
||||||
}).catch(error => {
|
|
||||||
self.updating = false;
|
|
||||||
self.transactionRemoving[transaction.id] = false;
|
|
||||||
|
|
||||||
if (!error.processed) {
|
|
||||||
self.$refs.snackbar.showError(error);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
scrollCategoryMenuToSelectedItem(opened) {
|
scrollCategoryMenuToSelectedItem(opened) {
|
||||||
if (opened) {
|
if (opened) {
|
||||||
this.scrollMenuToSelectedItem(this.$refs.categoryFilterMenu);
|
this.scrollMenuToSelectedItem(this.$refs.categoryFilterMenu);
|
||||||
|
|||||||
Reference in New Issue
Block a user