Clean up destroy routine

This commit is contained in:
James Cole
2022-02-28 17:06:01 +01:00
parent 22a6e34279
commit b9536dfe4e
26 changed files with 188 additions and 368 deletions

View File

@@ -66,7 +66,7 @@
<script>
import {mapGetters} from "vuex";
import Destroy from "../../api/webhooks/destroy";
import Destroy from "../../api/generic/destroy";
import List from "../../api/webhooks/list";
export default {
@@ -119,8 +119,7 @@ export default {
});
},
destroyWebhook: function (id) {
let destr = new Destroy;
destr.destroy(id).then(() => {
(new Destroy('webhooks')).destroy(id).then(() => {
this.$store.dispatch('fireflyiii/refreshCacheKey');
this.triggerUpdate();
});