Fix #4 - Do not trigger loading if mode='loading'
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
4b8b5bb2fe
commit
e777d6b5d4
@ -660,10 +660,8 @@
|
||||
console.log("Mode changed to " + mode);
|
||||
this.path = "";
|
||||
this.resetPhotos();
|
||||
if (mode != "login" && mode != "loading") {
|
||||
this._loadAlbums();
|
||||
this._loadPhotos();
|
||||
}
|
||||
},
|
||||
|
||||
breadcrumb: function(path) {
|
||||
@ -1097,7 +1095,11 @@
|
||||
},
|
||||
|
||||
_loadPhotos: function(start, append, limit) {
|
||||
if (this.loading == true || this.mode == "login") {
|
||||
if (mode == "login" || mode == "loading") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.loading == true) {
|
||||
return;
|
||||
}
|
||||
this.loading = true;
|
||||
@ -1186,7 +1188,11 @@
|
||||
},
|
||||
|
||||
_loadAlbums: function() {
|
||||
if (this.loadingAlbums == true || this.mode == "login") {
|
||||
if (mode == "login" || mode == "loading") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.loadingAlbums == true) {
|
||||
return;
|
||||
}
|
||||
this.loadingAlbums = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user