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,7 +56,11 @@ angular.module('app')
}
}
} else if(eventName == "sync:error") {
this.showErrorStatus();
// 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();
}
}
});