mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Clean up destroy routine
This commit is contained in:
parent
b9536dfe4e
commit
d6e5f71d50
@ -127,7 +127,7 @@
|
||||
|
||||
<script>
|
||||
import format from "date-fns/format";
|
||||
import Destroy from "../../api/transactions/destroy";
|
||||
import Destroy from "../../api/generic/destroy";
|
||||
|
||||
export default {
|
||||
name: "LargeTable",
|
||||
@ -209,8 +209,8 @@ export default {
|
||||
});
|
||||
},
|
||||
destroyTransaction: function (id) {
|
||||
let destr = new Destroy;
|
||||
destr.destroy(id).then(() => {
|
||||
|
||||
(new Destroy('transactions')).destroy(id).then(() => {
|
||||
this.$store.dispatch('fireflyiii/refreshCacheKey');
|
||||
//this.triggerUpdate();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user