summaryrefslogtreecommitdiff
path: root/src/pages.js
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-05-05 22:56:56 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-05-05 22:56:56 -0500
commitf86d11c3ce1f04ee89da235d78447aed6d6d7130 (patch)
treef253642b156ba296c9a5f9211ae95b62da3ccfb5 /src/pages.js
parentbae5fe5501117df1b16da1aeb3355056d6882648 (diff)
downloadimmich-frame-f86d11c3ce1f04ee89da235d78447aed6d6d7130.tar.xz
immich-frame-f86d11c3ce1f04ee89da235d78447aed6d6d7130.zip
albums page and a bunch of stuff
Diffstat (limited to 'src/pages.js')
-rw-r--r--src/pages.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pages.js b/src/pages.js
index 3a02454..0576684 100644
--- a/src/pages.js
+++ b/src/pages.js
@@ -21,11 +21,12 @@ export default class Page {
Page.pathnameCallback()
}
- constructor(pageContainer, endpoint, f_initialize) {
- Page.pages[endpoint] = this
+ constructor(pageContainer, endpoints, f_initialize) {
+ for (const endpoint of endpoints)
+ Page.pages[endpoint] = this
this.pageContainer = pageContainer
- this.endpoint = endpoint
+ this.endpoints = endpoints
this.initialize = f_initialize
this.visible = false
this.initialized = false
@@ -35,6 +36,6 @@ export default class Page {
this.pageContainer.style.display = visible ? null : "none"
this.visible = visible
if (visible && !this.initialized && this.initialize)
- this.initialized = this.initialize()
+ this.initialized = this.initialize(this.pageContainer)
}
}