mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-24 11:55:50 +01:00
dialogs have a message title
This commit is contained in:
parent
1eaa104182
commit
54d2742604
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user