From c28158b041a196dff91a79142e310225406fd2ca Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 21 Aug 2023 00:00:25 +0800 Subject: [PATCH] remove unused code --- src/views/desktop/transactions/ListPage.vue | 25 --------------------- 1 file changed, 25 deletions(-) diff --git a/src/views/desktop/transactions/ListPage.vue b/src/views/desktop/transactions/ListPage.vue index 42b0c156..00bf6f38 100644 --- a/src/views/desktop/transactions/ListPage.vue +++ b/src/views/desktop/transactions/ListPage.vue @@ -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);