Skip to content

Commit a8c01bc

Browse files
committed
2 parents b923820 + 3518951 commit a8c01bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

custom/composables/agentStore/useAgentSessions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { PRE_SESSION_ID } from './constants';
66
import { i18nInstance } from '@/i18n';
77

88
type AdminforthLike = {
9-
confirm(options: { message: string; yes: string; no: string }): Promise<boolean>;
9+
confirm(options: { title?: string; message?: string; yes?: string; no?: string; dangerous?: boolean }): Promise<boolean>;
1010
};
1111

1212
type CreateAgentSessionManagerOptions = {
@@ -177,7 +177,7 @@ export function createAgentSessionManager({
177177
return;
178178
}
179179
blockCloseOfChat.value = true;
180-
const isConfirmed = await adminforth.confirm({title: t('Are you sure, that you want to delete this session?'), message: t('This process is irreversible.'), yes: 'Yes', no: 'No'});
180+
const isConfirmed = await adminforth.confirm({title: t('Are you sure, that you want to delete this session?'), message: t('This process is irreversible.'), yes: 'Yes', no: 'No', dangerous: true});
181181
blockCloseOfChat.value = false;
182182
if (!isConfirmed) {
183183
return;

0 commit comments

Comments
 (0)