remove unused code

This commit is contained in:
MaysWind
2023-08-21 00:00:25 +08:00
parent 661199850c
commit c28158b041
@@ -403,7 +403,6 @@ export default {
alwaysShowNav: mdAndUp.value,
showNav: mdAndUp.value,
showCustomDateRangeDialog: false,
transactionRemoving: {},
icons: {
search: mdiMagnify,
check: mdiCheck,
@@ -413,7 +412,6 @@ export default {
dropdownMenu: mdiMenuDown,
modifyBalance: mdiPencilBoxOutline,
arrowRight: mdiArrowRight,
remove: mdiDeleteOutline,
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) {
if (opened) {
this.scrollMenuToSelectedItem(this.$refs.categoryFilterMenu);