set default cancel button in message boxes

This commit is contained in:
Eugene Pankov
2021-08-02 21:01:35 +02:00
parent ab8061ab39
commit edd7e9c7b7
15 changed files with 43 additions and 26 deletions

View File

@@ -106,10 +106,11 @@ export class TerminalTabComponent extends BaseTerminalTabComponent {
{
type: 'warning',
message: `"${children[0].command}" is still running. Close?`,
buttons: ['Cancel', 'Kill'],
defaultId: 1,
buttons: ['Kill', 'Cancel'],
defaultId: 0,
cancelId: 1,
}
)).response === 1
)).response === 0
}
ngOnDestroy (): void {