Client updated at

This commit is contained in:
Mo Bitar
2018-06-01 11:03:57 -05:00
parent f17c5995c6
commit 53300ac1b6
5 changed files with 42 additions and 12 deletions

View File

@@ -326,19 +326,16 @@ angular.module('app')
this.togglePin = function() {
this.note.setAppDataItem("pinned", !this.note.pinned);
this.note.setDirty(true);
this.changesMade();
}
this.toggleLockNote = function() {
this.note.setAppDataItem("locked", !this.note.locked);
this.note.setDirty(true);
this.changesMade();
}
this.toggleArchiveNote = function() {
this.note.setAppDataItem("archived", !this.note.archived);
this.note.setDirty(true);
this.changesMade(true);
$rootScope.$broadcast("noteArchived");
}