From 626295c94ca8456223bc4b2c0301f1254a87854f Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Sun, 16 Sep 2018 21:17:33 -0700 Subject: [PATCH] Reset albums and paths on mode and user change Signed-off-by: James Ketrenos --- frontend/src/ketr-photos/ketr-photos.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/ketr-photos/ketr-photos.html b/frontend/src/ketr-photos/ketr-photos.html index 21b911b..44c3fb2 100755 --- a/frontend/src/ketr-photos/ketr-photos.html +++ b/frontend/src/ketr-photos/ketr-photos.html @@ -558,6 +558,7 @@ }, resetPhotos: function() { + this.albums = []; this.years = []; this.notifyPath("years.length"); this.pendingPhotos = []; @@ -581,6 +582,7 @@ console.log("Mode changed to " + mode); this.path = ""; this.resetPhotos(); + this._loadAlbums(); this._loadPhotos(); }, @@ -1146,6 +1148,7 @@ userChanged: function(user) { this.resetPhotos(); + this.path = ""; if (user) { this.mode = "memories"; this._loadAlbums();