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