fix: change status dialog

This commit is contained in:
puriphatt 2024-07-25 10:49:43 +00:00
parent 305d1f2e2b
commit f9eeb7f529
4 changed files with 152 additions and 84 deletions

View file

@ -419,8 +419,8 @@ async function triggerChangeStatus(
): Promise<Branch & { qrCodeImageUploadUrl: string; imageUploadUrl: string }> {
return await new Promise((resolve) => {
dialog({
color: 'warning',
icon: 'mdi-alert',
color: status !== 'INACTIVE' ? 'warning' : 'info',
icon: status !== 'INACTIVE' ? 'mdi-alert' : 'mdi-comment-alert',
title: t('confirmChangeStatusTitle'),
actionText:
status !== 'INACTIVE' ? t('switchOffLabel') : t('switchOnLabel'),