editor error message
This commit is contained in:
@@ -148,11 +148,11 @@ angular.module('app.frontend')
|
||||
if(success) {
|
||||
if(statusTimeout) $timeout.cancel(statusTimeout);
|
||||
statusTimeout = $timeout(function(){
|
||||
this.saveError = false;
|
||||
var status = "All changes saved"
|
||||
if(syncManager.offline) {
|
||||
status += " (offline)";
|
||||
}
|
||||
this.saveError = false;
|
||||
this.noteStatus = status;
|
||||
}.bind(this), 200)
|
||||
} else {
|
||||
|
||||
@@ -171,7 +171,7 @@ class SyncRunner {
|
||||
}.bind(this))
|
||||
.catch(function(response){
|
||||
console.log("Sync error: ", response);
|
||||
var error = response.data.error || {message: "Could not connect to server."};
|
||||
var error = response.data ? response.data.error : {message: "Could not connect to server."};
|
||||
|
||||
// Re-add subItems since this operation failed. We'll have to try again.
|
||||
provider.addPendingItems(subItems);
|
||||
|
||||
Reference in New Issue
Block a user