Revize c4f198c3
Přidáno uživatelem Jaroslav Hrubý před asi 2 roky(ů)
webapp/utils/alerts.ts | ||
---|---|---|
43 | 43 |
}); |
44 | 44 |
} |
45 | 45 |
|
46 |
export function ShowConfirm(action: () => void, actionLabel: string) { |
|
46 |
export function ShowConfirm( |
|
47 |
action: () => void, |
|
48 |
actionLabel: string, |
|
49 |
description: string = '', |
|
50 |
icon: SweetAlertIcon = 'question' |
|
51 |
) { |
|
47 | 52 |
Swal.fire({ |
48 |
icon: 'question',
|
|
53 |
icon: icon,
|
|
49 | 54 |
title: 'Opravdu si přejete ' + actionLabel + '?', |
55 |
html: description, |
|
50 | 56 |
showCancelButton: true, |
51 | 57 |
confirmButtonText: 'Potvrdit', |
52 | 58 |
confirmButtonColor: '#5278ff', |
Také k dispozici: Unified diff
Finalization - buttons, confirm toasters and navigation were implemented