mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
Improved messages.
This commit is contained in:
@@ -635,16 +635,16 @@ class SnippetNoteDetail extends React.Component {
|
|||||||
|
|
||||||
showWarning (e, msg) {
|
showWarning (e, msg) {
|
||||||
const warningMessage = (msg) => ({
|
const warningMessage = (msg) => ({
|
||||||
'export-txt': 'Text export is available only as a markdown note',
|
'export-txt': 'Text export',
|
||||||
'export-md': 'Markdown export is available only as a markdown note.',
|
'export-md': 'Markdown export',
|
||||||
'export-html': 'HTML export is available only as a markdown note.',
|
'export-html': 'HTML export',
|
||||||
'print': 'Print is available only as a markdown note.'
|
'print': 'Print'
|
||||||
})[msg]
|
})[msg]
|
||||||
|
|
||||||
dialog.showMessageBox(remote.getCurrentWindow(), {
|
dialog.showMessageBox(remote.getCurrentWindow(), {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: i18n.__('Sorry!'),
|
message: i18n.__('Sorry!'),
|
||||||
detail: i18n.__(warningMessage(msg)),
|
detail: i18n.__(warningMessage(msg) + ' is available only as a markdown note.'),
|
||||||
buttons: [i18n.__('OK')]
|
buttons: [i18n.__('OK')]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -496,10 +496,10 @@ class NoteList extends React.Component {
|
|||||||
|
|
||||||
alertIfSnippet (msg) {
|
alertIfSnippet (msg) {
|
||||||
const warningMessage = (msg) => ({
|
const warningMessage = (msg) => ({
|
||||||
'export-txt': 'Text export is available only as a markdown note',
|
'export-txt': 'Text export',
|
||||||
'export-md': 'Markdown export is available only as a markdown note.',
|
'export-md': 'Markdown export',
|
||||||
'export-html': 'HTML export is available only as a markdown note.',
|
'export-html': 'HTML export',
|
||||||
'print': 'Print is available only as a markdown note.'
|
'print': 'Print'
|
||||||
})[msg]
|
})[msg]
|
||||||
|
|
||||||
const targetIndex = this.getTargetIndex()
|
const targetIndex = this.getTargetIndex()
|
||||||
@@ -507,7 +507,7 @@ class NoteList extends React.Component {
|
|||||||
dialog.showMessageBox(remote.getCurrentWindow(), {
|
dialog.showMessageBox(remote.getCurrentWindow(), {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: i18n.__('Sorry!'),
|
message: i18n.__('Sorry!'),
|
||||||
detail: i18n.__(warningMessage(msg)),
|
detail: i18n.__(warningMessage(msg) + ' is available only as a markdown note.'),
|
||||||
buttons: [i18n.__('OK')]
|
buttons: [i18n.__('OK')]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user