1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Improved messages.

This commit is contained in:
Miguel Teixeira
2018-11-27 20:28:57 +00:00
parent ef66e71feb
commit c245855bbf
2 changed files with 10 additions and 10 deletions

View File

@@ -635,16 +635,16 @@ class SnippetNoteDetail extends React.Component {
showWarning (e, msg) {
const warningMessage = (msg) => ({
'export-txt': 'Text export is available only as a markdown note',
'export-md': 'Markdown export is available only as a markdown note.',
'export-html': 'HTML export is available only as a markdown note.',
'print': 'Print is available only as a markdown note.'
'export-txt': 'Text export',
'export-md': 'Markdown export',
'export-html': 'HTML export',
'print': 'Print'
})[msg]
dialog.showMessageBox(remote.getCurrentWindow(), {
type: 'warning',
message: i18n.__('Sorry!'),
detail: i18n.__(warningMessage(msg)),
detail: i18n.__(warningMessage(msg) + ' is available only as a markdown note.'),
buttons: [i18n.__('OK')]
})
}

View File

@@ -496,10 +496,10 @@ class NoteList extends React.Component {
alertIfSnippet (msg) {
const warningMessage = (msg) => ({
'export-txt': 'Text export is available only as a markdown note',
'export-md': 'Markdown export is available only as a markdown note.',
'export-html': 'HTML export is available only as a markdown note.',
'print': 'Print is available only as a markdown note.'
'export-txt': 'Text export',
'export-md': 'Markdown export',
'export-html': 'HTML export',
'print': 'Print'
})[msg]
const targetIndex = this.getTargetIndex()
@@ -507,7 +507,7 @@ class NoteList extends React.Component {
dialog.showMessageBox(remote.getCurrentWindow(), {
type: 'warning',
message: i18n.__('Sorry!'),
detail: i18n.__(warningMessage(msg)),
detail: i18n.__(warningMessage(msg) + ' is available only as a markdown note.'),
buttons: [i18n.__('OK')]
})
}