feat: add action text to confirmation dialogs

This commit is contained in:
puriphatt 2025-01-08 10:48:33 +07:00
parent 99d2f0da42
commit 8dd36cbc64
3 changed files with 4 additions and 0 deletions

View file

@ -70,6 +70,7 @@ async function fetchStats() {
function triggerCancel(id: string) {
dialogWarningClose(t, {
message: t('form.warning.cancel'),
actionText: t('dialog.action.ok'),
action: async () => {
const res = await requestListStore.cancelRequest(id);
if (res) {