fix: Restore Webhook Test Functionality (#3857)

Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
Michael Genson
2024-07-06 14:10:01 -05:00
committed by GitHub
parent aa6e109162
commit 6e6ae80c46
7 changed files with 50 additions and 9 deletions

View File

@@ -64,7 +64,6 @@ export const useGroupWebhooks = function () {
newDt.setMinutes(Number(minutes));
updateData.scheduledTime = `${pad(newDt.getUTCHours(), 2)}:${pad(newDt.getUTCMinutes(), 2)}`;
console.log(updateData.scheduledTime);
const payload = {
...updateData,
@@ -85,7 +84,14 @@ export const useGroupWebhooks = function () {
if (data) {
this.refreshAll();
}
loading.value = false;
},
async testOne(id: string | number) {
loading.value = true;
await api.groupWebhooks.testOne(id);
loading.value = false;
}
};
const webhooks = actions.getAll();