Save status display updates

This commit is contained in:
Mo Bitar
2018-12-14 17:52:56 -06:00
parent 6dad78715b
commit dde857c4e1
5 changed files with 13 additions and 9 deletions

View File

@@ -324,7 +324,7 @@ angular.module('app')
}
this.showSavingStatus = function() {
this.noteStatus = $sce.trustAsHtml("Saving...");
this.noteStatus = {message: "Saving..."};
}
this.showAllChangesSavedStatus = function() {
@@ -335,7 +335,7 @@ angular.module('app')
if(authManager.offline()) {
status += " (offline)";
}
this.noteStatus = $sce.trustAsHtml(status);
this.noteStatus = {message: status};
}
this.showErrorStatus = function(error) {
@@ -347,7 +347,7 @@ angular.module('app')
}
this.saveError = true;
this.syncTakingTooLong = false;
this.noteStatus = $sce.trustAsHtml(`<span class='error bold'>${error.message}</span><br>${error.desc}`)
this.noteStatus = error;
}
this.contentChanged = function() {