ui: add confirm dialog (#226)

This commit is contained in:
undefined committed 2021-10-06 13:36:42 +08:00
1 parent 8b9a3c6410
commit c696f51789
15 files changed
+46 -32

No files matched your search

@@ -165,10 +165,7 @@ async function onCommentClickDelete(type, ev) {
? 'Confirm deleting this comment? Its replies will be deleted as well.'
: 'Confirm deleting this reply?';
const action = await new ConfirmDialog({
$body: tpl`
<div class="typo">
<p>${i18n(message)}</p>
</div>`,
$body: tpl.typoMsg(i18n(message)),
}).open();
if (action !== 'yes') return;