Revize d7167305
Přidáno uživatelem Jaroslav Hrubý před asi 2 roky(ů)
webapp/utils/alerts.ts | ||
---|---|---|
30 | 30 |
|
31 | 31 |
export function ShowConfirmDelete(deleteAction: () => void, deleteSubjectLabel: string) { |
32 | 32 |
Swal.fire({ |
33 |
icon: 'question', |
|
33 | 34 |
title: 'Opravdu si přejete smazat ' + deleteSubjectLabel + '?', |
34 | 35 |
showCancelButton: true, |
35 | 36 |
confirmButtonText: 'Smazat', |
37 |
confirmButtonColor: '#d33', |
|
38 |
cancelButtonText: 'Zrušit', |
|
39 |
cancelButtonColor: '#c0c0c0', |
|
36 | 40 |
}).then((result) => { |
37 | 41 |
if (result.isConfirmed) { |
38 | 42 |
deleteAction(); |
Také k dispozici: Unified diff
Document preview implemented