Only show error status if note is dirty

This commit is contained in:
Mo Bitar
2019-05-29 16:19:37 -05:00
parent ff51feaab1
commit 6e06e04714

View File

@@ -56,8 +56,12 @@ angular.module('app')
} }
} }
} else if(eventName == "sync:error") { } else if(eventName == "sync:error") {
// only show error status in editor if the note is dirty. Otherwise, it means the originating sync
// came from somewhere else and we don't want to display an error here.
if(this.note.dirty){
this.showErrorStatus(); this.showErrorStatus();
} }
}
}); });
// Right now this only handles offline saving status changes. // Right now this only handles offline saving status changes.