From 54d27426044d3eddae7dcafa45db959547228155 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 16 Feb 2018 14:20:43 -0500 Subject: [PATCH] dialogs have a message title --- src/main/menu.main.ts | 12 ++++++++---- src/services/desktopPlatformUtils.service.ts | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main/menu.main.ts b/src/main/menu.main.ts index cb9278b7..ca270295 100644 --- a/src/main/menu.main.ts +++ b/src/main/menu.main.ts @@ -212,7 +212,8 @@ export class MenuMain { click: () => { const result = dialog.showMessageBox(this.main.windowMain.win, { 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')], cancelId: 1, defaultId: 0, @@ -229,7 +230,8 @@ export class MenuMain { click: () => { const result = dialog.showMessageBox(this.main.windowMain.win, { 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')], cancelId: 1, defaultId: 0, @@ -246,7 +248,8 @@ export class MenuMain { click: () => { const result = dialog.showMessageBox(this.main.windowMain.win, { 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')], cancelId: 1, defaultId: 0, @@ -264,7 +267,8 @@ export class MenuMain { click: () => { const result = dialog.showMessageBox(this.main.windowMain.win, { 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')], cancelId: 1, defaultId: 0, diff --git a/src/services/desktopPlatformUtils.service.ts b/src/services/desktopPlatformUtils.service.ts index ba9d55be..35df4ed2 100644 --- a/src/services/desktopPlatformUtils.service.ts +++ b/src/services/desktopPlatformUtils.service.ts @@ -140,7 +140,8 @@ export class DesktopPlatformUtilsService implements PlatformUtilsService { const result = remote.dialog.showMessageBox(remote.getCurrentWindow(), { type: type, title: title, - message: text, + message: title, + detail: text, buttons: buttons, cancelId: buttons.length === 2 ? 1 : null, defaultId: 0,