Skip to content

Commit 9cba232

Browse files
committed
feat: Add OK button to update message box
1 parent 73bd7af commit 9cba232

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

packages/neuron-wallet/src/controllers/update.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,19 @@ autoUpdater.on('update-available', () => {
3636

3737
autoUpdater.on('update-not-available', () => {
3838
dialog.showMessageBox({
39+
type: 'info',
3940
message: i18n.t('updater.update-not-available'),
41+
buttons: [i18n.t('common.ok')],
4042
})
4143
enableUpdaterMenuItem()
4244
})
4345

4446
autoUpdater.on('update-downloaded', () => {
4547
dialog.showMessageBox(
4648
{
49+
type: 'info',
4750
message: i18n.t('updater.updates-downloaded-about-to-quit-and-install'),
51+
buttons: [i18n.t('common.ok')],
4852
},
4953
() => {
5054
setImmediate(() => autoUpdater.quitAndInstall())

packages/neuron-wallet/src/locales/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export default {
143143
common: {
144144
yes: 'Yes',
145145
no: 'No',
146+
ok: 'OK',
146147
},
147148
},
148149
}

packages/neuron-wallet/src/locales/zh.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ export default {
142142
common: {
143143
yes: '是',
144144
no: '否',
145+
ok: '确定',
145146
},
146147
},
147148
}

0 commit comments

Comments
 (0)