improved deletion toast
This commit is contained in:
parent
5ad0a04f18
commit
0d702d0990
@ -400,12 +400,18 @@ $("#deleteEditSub").on("click", async function() {
|
||||
$("#subFormModal").modal("hide");
|
||||
|
||||
await confirmDeleteModal(
|
||||
"Confirm Delete",
|
||||
"Confirm Deletion",
|
||||
`Do you wish to permanently delete <b>${sub.name}</b>?`,
|
||||
async () => {
|
||||
await deleteSubscription(subId);
|
||||
await loadSubscriptions(getCurrentlyActiveServer().guild_id);
|
||||
showToast("danger", "Deleted Subscription", "Subscription ID: " + subId);
|
||||
|
||||
showToast(
|
||||
"danger",
|
||||
"Deleted a Subscription",
|
||||
sub.name,
|
||||
12000
|
||||
);
|
||||
},
|
||||
async () => {
|
||||
$("#subFormModal").modal("show");
|
||||
|
Loading…
x
Reference in New Issue
Block a user