Skip to content

Commit d860596

Browse files
Abner Soares Alves JuniorRokt33r
authored andcommitted
Add Ok button to export confirmation box
1 parent 6d455fc commit d860596

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

browser/components/MarkdownPreview.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import yaml from 'js-yaml'
2121
import { render } from 'react-dom'
2222
import Carousel from 'react-image-carousel'
2323
import ConfigManager from '../main/lib/ConfigManager'
24+
import i18n from 'browser/lib/i18n'
2425

2526
const { remote, shell } = require('electron')
2627
const attachmentManagement = require('../main/lib/dataApi/attachmentManagement')
@@ -423,7 +424,8 @@ export default class MarkdownPreview extends React.Component {
423424
.then(res => {
424425
dialog.showMessageBox(remote.getCurrentWindow(), {
425426
type: 'info',
426-
message: `Exported to ${filename}`
427+
message: `Exported to ${filename}`,
428+
buttons: [i18n.__('Ok')]
427429
})
428430
})
429431
.catch(err => {

locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"Toggle Mode": "Toggle Mode",
1010
"Add tag...": "Add tag...",
1111
"Trash": "Trash",
12+
"Ok": "Ok",
1213
"MODIFICATION DATE": "MODIFICATION DATE",
1314
"Words": "Words",
1415
"Letters": "Letters",

0 commit comments

Comments
 (0)