fix delete current webhook
This commit is contained in:
parent
d50e1943eb
commit
7a314908d1
1 changed files with 1 additions and 1 deletions
|
@ -96,8 +96,8 @@
|
||||||
deleteCurrentWebhook: function() {
|
deleteCurrentWebhook: function() {
|
||||||
const yn = confirm(`Delete webhook ${this.selectedWebhookObject.name}?`);
|
const yn = confirm(`Delete webhook ${this.selectedWebhookObject.name}?`);
|
||||||
if (yn) {
|
if (yn) {
|
||||||
this.selectedWebhook = -1;
|
|
||||||
this.deleteWebhookByIndex(this.selectedWebhook);
|
this.deleteWebhookByIndex(this.selectedWebhook);
|
||||||
|
this.selectedWebhook = -1;
|
||||||
this.saveToLocalstorage();
|
this.saveToLocalstorage();
|
||||||
alert(`Webhook successfully deleted`);
|
alert(`Webhook successfully deleted`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue