chore: implement audit action items and translate hardcoded German text
This commit is contained in:
@@ -66,13 +66,13 @@ export interface SubpageSummary {
|
||||
coverAssetId: string | null;
|
||||
}
|
||||
|
||||
// Module-level flag so the album summary is only logged once even if the
|
||||
// ImmichClient singleton is replaced in hot-reload scenarios.
|
||||
let _hasLoggedAlbums = false;
|
||||
// Note: Album summary logging state is kept in the client instance.
|
||||
|
||||
// ── API Client ─────────────────────────────────────────────────
|
||||
|
||||
class ImmichClient {
|
||||
private hasLoggedAlbums = false;
|
||||
|
||||
private get config() {
|
||||
return getConfig();
|
||||
}
|
||||
@@ -168,8 +168,8 @@ class ImmichClient {
|
||||
});
|
||||
|
||||
// Log album summary on first load so admins can see what's published
|
||||
if (!_hasLoggedAlbums) {
|
||||
_hasLoggedAlbums = true;
|
||||
if (!this.hasLoggedAlbums) {
|
||||
this.hasLoggedAlbums = true;
|
||||
console.log('\n[Lightbox] Published albums:');
|
||||
console.log('─'.repeat(80));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user