background.ts/conversation_view.ts modules, Whisper.View/ToastView in TS
This commit is contained in:
parent
2aa2aca9f2
commit
d0e3a2ce29
34 changed files with 957 additions and 887 deletions
|
@ -13,7 +13,7 @@ type ConfirmationDialogViewProps = {
|
|||
confirmStyle?: 'affirmative' | 'negative';
|
||||
message: string;
|
||||
okText: string;
|
||||
reject?: () => void;
|
||||
reject?: (error: Error) => void;
|
||||
resolve: () => void;
|
||||
};
|
||||
|
||||
|
@ -65,7 +65,7 @@ function showConfirmationDialog(options: ConfirmationDialogViewProps) {
|
|||
onClose={() => {
|
||||
removeConfirmationDialog();
|
||||
if (options.reject) {
|
||||
options.reject();
|
||||
options.reject(new Error('showConfirmationDialog: onClose called'));
|
||||
}
|
||||
}}
|
||||
title={options.message}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue