Feat v0.5.0 realtime dialog (#30)
All checks were successful
All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #30.
This commit is contained in:
@@ -275,7 +275,7 @@
|
||||
}
|
||||
|
||||
async function handleDelete(item) {
|
||||
if (!confirm('Delete schedule "' + item.name + '"?')) return;
|
||||
if (!await sw.confirm('Delete schedule "' + item.name + '"?', { destructive: true })) return;
|
||||
try {
|
||||
await apiDelete(item.id);
|
||||
sw.toast('Schedule deleted', 'success');
|
||||
|
||||
Reference in New Issue
Block a user