Fix #4 - Do not trigger loading if mode='loading'

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-09-30 17:57:54 -07:00
parent 88e3a284b7
commit 4b8b5bb2fe

View File

@ -660,7 +660,7 @@
console.log("Mode changed to " + mode); console.log("Mode changed to " + mode);
this.path = ""; this.path = "";
this.resetPhotos(); this.resetPhotos();
if (mode != "login") { if (mode != "login" && mode != "loading") {
this._loadAlbums(); this._loadAlbums();
this._loadPhotos(); this._loadPhotos();
} }