mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
set default cancel button in message boxes
This commit is contained in:
@@ -445,6 +445,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
||||
message: `Paste multiple lines?`,
|
||||
buttons,
|
||||
defaultId: 0,
|
||||
cancelId: 1,
|
||||
}
|
||||
)).response
|
||||
if (result === 1) {
|
||||
|
@@ -79,10 +79,11 @@ export class ColorSchemeSettingsTabComponent {
|
||||
{
|
||||
type: 'warning',
|
||||
message: `Delete "${scheme.name}"?`,
|
||||
buttons: ['Keep', 'Delete'],
|
||||
buttons: ['Delete', 'Keep'],
|
||||
defaultId: 1,
|
||||
cancelId: 1,
|
||||
}
|
||||
)).response === 1) {
|
||||
)).response === 0) {
|
||||
this.customColorSchemes = this.customColorSchemes.filter(x => x.name !== scheme.name)
|
||||
this.config.store.terminal.customColorSchemes = this.customColorSchemes
|
||||
this.config.save()
|
||||
|
@@ -27,10 +27,11 @@ export class LoginScriptsSettingsComponent {
|
||||
type: 'warning',
|
||||
message: 'Delete this script?',
|
||||
detail: script.expect,
|
||||
buttons: ['Keep', 'Delete'],
|
||||
defaultId: 1,
|
||||
buttons: ['Delete', 'Keep'],
|
||||
defaultId: 0,
|
||||
cancelId: 1,
|
||||
}
|
||||
)).response === 1) {
|
||||
)).response === 0) {
|
||||
this.scripts = this.scripts.filter(x => x !== script)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user