1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-28 12:35:40 +01:00

dialogs have a message title

This commit is contained in:
Kyle Spearrin 2018-02-16 14:20:43 -05:00
parent 1eaa104182
commit 54d2742604
2 changed files with 10 additions and 5 deletions

View File

@ -212,7 +212,8 @@ export class MenuMain {
click: () => { click: () => {
const result = dialog.showMessageBox(this.main.windowMain.win, { const result = dialog.showMessageBox(this.main.windowMain.win, {
title: this.main.i18nService.t('changeMasterPass'), title: this.main.i18nService.t('changeMasterPass'),
message: this.main.i18nService.t('changeMasterPasswordConfirmation'), message: this.main.i18nService.t('changeMasterPass'),
detail: this.main.i18nService.t('changeMasterPasswordConfirmation'),
buttons: [this.main.i18nService.t('yes'), this.main.i18nService.t('no')], buttons: [this.main.i18nService.t('yes'), this.main.i18nService.t('no')],
cancelId: 1, cancelId: 1,
defaultId: 0, defaultId: 0,
@ -229,7 +230,8 @@ export class MenuMain {
click: () => { click: () => {
const result = dialog.showMessageBox(this.main.windowMain.win, { const result = dialog.showMessageBox(this.main.windowMain.win, {
title: this.main.i18nService.t('changeEmail'), title: this.main.i18nService.t('changeEmail'),
message: this.main.i18nService.t('changeEmailConfirmation'), message: this.main.i18nService.t('changeEmail'),
detail: this.main.i18nService.t('changeEmailConfirmation'),
buttons: [this.main.i18nService.t('yes'), this.main.i18nService.t('no')], buttons: [this.main.i18nService.t('yes'), this.main.i18nService.t('no')],
cancelId: 1, cancelId: 1,
defaultId: 0, defaultId: 0,
@ -246,7 +248,8 @@ export class MenuMain {
click: () => { click: () => {
const result = dialog.showMessageBox(this.main.windowMain.win, { const result = dialog.showMessageBox(this.main.windowMain.win, {
title: this.main.i18nService.t('twoStepLogin'), title: this.main.i18nService.t('twoStepLogin'),
message: this.main.i18nService.t('twoStepLoginConfirmation'), message: this.main.i18nService.t('twoStepLogin'),
detail: this.main.i18nService.t('twoStepLoginConfirmation'),
buttons: [this.main.i18nService.t('yes'), this.main.i18nService.t('no')], buttons: [this.main.i18nService.t('yes'), this.main.i18nService.t('no')],
cancelId: 1, cancelId: 1,
defaultId: 0, defaultId: 0,
@ -264,7 +267,8 @@ export class MenuMain {
click: () => { click: () => {
const result = dialog.showMessageBox(this.main.windowMain.win, { const result = dialog.showMessageBox(this.main.windowMain.win, {
title: this.main.i18nService.t('logOut'), title: this.main.i18nService.t('logOut'),
message: this.main.i18nService.t('logOutConfirmation'), message: this.main.i18nService.t('logOut'),
detail: this.main.i18nService.t('logOutConfirmation'),
buttons: [this.main.i18nService.t('logOut'), this.main.i18nService.t('cancel')], buttons: [this.main.i18nService.t('logOut'), this.main.i18nService.t('cancel')],
cancelId: 1, cancelId: 1,
defaultId: 0, defaultId: 0,

View File

@ -140,7 +140,8 @@ export class DesktopPlatformUtilsService implements PlatformUtilsService {
const result = remote.dialog.showMessageBox(remote.getCurrentWindow(), { const result = remote.dialog.showMessageBox(remote.getCurrentWindow(), {
type: type, type: type,
title: title, title: title,
message: text, message: title,
detail: text,
buttons: buttons, buttons: buttons,
cancelId: buttons.length === 2 ? 1 : null, cancelId: buttons.length === 2 ? 1 : null,
defaultId: 0, defaultId: 0,