mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 02:36:36 +00:00
Solved some errors in identation
This commit is contained in:
@@ -635,12 +635,12 @@ 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 is available only as a markdown note',
|
||||||
'export-md': 'Markdown 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.',
|
'export-html': 'HTML export is available only as a markdown note.',
|
||||||
'print': 'Print is available only as a markdown note.'
|
'print': 'Print is available only as a markdown note.'
|
||||||
})[msg]
|
})[msg]
|
||||||
|
|
||||||
dialog.showMessageBox(remote.getCurrentWindow(), {
|
dialog.showMessageBox(remote.getCurrentWindow(), {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: i18n.__('Sorry!'),
|
message: i18n.__('Sorry!'),
|
||||||
|
|||||||
@@ -496,11 +496,11 @@ 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 is available only as a markdown note',
|
||||||
'export-md': 'Markdown 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.',
|
'export-html': 'HTML export is available only as a markdown note.',
|
||||||
'print': 'Print is available only as a markdown note.'
|
'print': 'Print is available only as a markdown note.'
|
||||||
})[msg]
|
})[msg]
|
||||||
|
|
||||||
const targetIndex = this.getTargetIndex()
|
const targetIndex = this.getTargetIndex()
|
||||||
if (this.notes[targetIndex].type === 'SNIPPET_NOTE') {
|
if (this.notes[targetIndex].type === 'SNIPPET_NOTE') {
|
||||||
|
|||||||
Reference in New Issue
Block a user