1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

Adjustments for Travis CI

This commit is contained in:
Simon
2018-03-07 08:37:55 +01:00
parent a413e273ca
commit 40b5472866
4 changed files with 12 additions and 10 deletions

View File

@@ -265,9 +265,9 @@ class SnippetNoteDetail extends React.Component {
if (this.state.note.snippets[index].content.trim().length > 0) { if (this.state.note.snippets[index].content.trim().length > 0) {
const dialogIndex = dialog.showMessageBox(remote.getCurrentWindow(), { const dialogIndex = dialog.showMessageBox(remote.getCurrentWindow(), {
type: 'warning', type: 'warning',
message: i18n.__('Delete a snippet'), message: i18n.__('Delete a snippet'),
detail: i18n.__('This work cannot be undone.'), detail: i18n.__('This work cannot be undone.'),
buttons: [ i18n.__('Confirm'), i18n.__('Cancel')] buttons: [i18n.__('Confirm'), i18n.__('Cancel')]
}) })
if (dialogIndex === 0) { if (dialogIndex === 0) {
this.deleteSnippetByIndex(index) this.deleteSnippetByIndex(index)
@@ -508,8 +508,8 @@ class SnippetNoteDetail extends React.Component {
showWarning () { showWarning () {
dialog.showMessageBox(remote.getCurrentWindow(), { dialog.showMessageBox(remote.getCurrentWindow(), {
type: 'warning', type: 'warning',
message: i18n.__('Sorry!'), message: i18n.__('Sorry!'),
detail: i18n.__('md/text import is available only a markdown note.'), detail: i18n.__('md/text import is available only a markdown note.'),
buttons: ['OK'] buttons: ['OK']
}) })
} }

View File

@@ -41,9 +41,9 @@ class Detail extends React.Component {
const alertConfig = { const alertConfig = {
type: 'warning', type: 'warning',
message: i18n.__('Confirm note deletion'), message: i18n.__('Confirm note deletion'),
detail: i18n.__('This will permanently remove this note.'), detail: i18n.__('This will permanently remove this note.'),
buttons: [ i18n.__('Confirm'), i18n.__('Cancel')] buttons: [i18n.__('Confirm'), i18n.__('Cancel')]
} }
const dialogueButtonIndex = dialog.showMessageBox(remote.getCurrentWindow(), alertConfig) const dialogueButtonIndex = dialog.showMessageBox(remote.getCurrentWindow(), alertConfig)

View File

@@ -127,5 +127,6 @@
"Restore": "Restore", "Restore": "Restore",
"Permanent Delete": "Dauerhaft Löschen", "Permanent Delete": "Dauerhaft Löschen",
"Confirm note deletion": "Löschen bestätigen", "Confirm note deletion": "Löschen bestätigen",
"This will permanently remove this note.": "Notiz wird dauerhaft gelöscht" "This will permanently remove this note.": "Notiz wird dauerhaft gelöscht",
"You have to save!": "You have to save!"
} }

View File

@@ -127,5 +127,6 @@
"Restore": "Restore", "Restore": "Restore",
"Permanent Delete": "Permanent Delete", "Permanent Delete": "Permanent Delete",
"Confirm note deletion": "Confirm note deletion", "Confirm note deletion": "Confirm note deletion",
"This will permanently remove this note.": "This will permanently remove this note." "This will permanently remove this note.": "This will permanently remove this note.",
"Successfully applied!": "Successfully applied!"
} }