Editor merges

This commit is contained in:
Mo Bitar
2017-11-04 20:58:31 -05:00
parent 883d6525a8
commit bc1520ffd7

View File

@@ -352,11 +352,7 @@ angular.module('app.frontend')
this.onNameBlur = function() {
this.editingName = false;
<<<<<<< HEAD
=======
keyboardManager.unlockKeyboardContext();
this.updateTagsFromTagsString()
>>>>>>> c73cc80... Sync manager filter then slice, fix editor tags on blur, fix deleting note with no title
}
this.toggleFullScreen = function() {
@@ -371,12 +367,8 @@ angular.module('app.frontend')
}
this.deleteNote = function() {
<<<<<<< HEAD
if(confirm("Are you sure you want to delete this note?")) {
=======
let title = this.note.safeTitle().length ? `'${this.note.title}'` : "this note";
if(confirm(`Are you sure you want to delete ${title}?`)) {
>>>>>>> c73cc80... Sync manager filter then slice, fix editor tags on blur, fix deleting note with no title
this.remove()(this.note);
this.showMenu = false;
}