@@ -428,19 +428,19 @@ export default class AIDialog extends BaseDialog<AIDialogResult> {
428428 } ;
429429 }
430430
431- protected _getStopButtonItem ( ) : NamedToolbarItem {
431+ protected _getCancelButtonItem ( ) : NamedToolbarItem {
432432 const width = getActionButtonWidth ( ) ;
433433 return {
434- name : 'stop ' ,
434+ name : 'cancel ' ,
435435 toolbar : 'bottom' ,
436436 location : 'after' ,
437437 widget : 'dxButton' ,
438438 options : {
439439 type : 'default' ,
440440 stylingMode : 'contained' ,
441- text : localizationMessage . format ( 'dxHtmlEditor-aiStop ' ) ,
441+ text : localizationMessage . format ( 'dxHtmlEditor-aiCancel ' ) ,
442442 width,
443- onClick : ( ) => this . _stopAICommandExecution ( ) ,
443+ onClick : ( ) => this . _cancelAICommandExecution ( ) ,
444444 onInitialized : this . _addEscapeHandler . bind ( this ) ,
445445 } ,
446446 } ;
@@ -466,7 +466,7 @@ export default class AIDialog extends BaseDialog<AIDialogResult> {
466466 items . push ( this . _getGenerateButtonItem ( ) ) ;
467467 break ;
468468 case DialogState . Generating :
469- items . push ( this . _getStopButtonItem ( ) ) ;
469+ items . push ( this . _getCancelButtonItem ( ) ) ;
470470 break ;
471471 case DialogState . Error : {
472472 if ( this . _isAskAICommandSelected ) {
@@ -579,7 +579,7 @@ export default class AIDialog extends BaseDialog<AIDialogResult> {
579579 this . _abort = abort ;
580580 }
581581
582- private _stopAICommandExecution ( ) : void {
582+ private _cancelAICommandExecution ( ) : void {
583583 this . _processCommandCompletion ( this . _getInitialDialogState ( ) ) ;
584584 }
585585
0 commit comments