feat(get-user): emit brand_chrome for Hamkar brandManaged opt-in

Expose brand_chrome so apps apply header/menu/body colors only after SuperAdmin color save.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-14 17:04:35 +03:30
co-authored by Cursor
parent 7521c69c11
commit 9031135797
4 changed files with 11 additions and 0 deletions
+6
View File
@@ -122,6 +122,12 @@ export class GetUserService {
: undefined,
/** Laravel-compatible overlay; Hamkar merges only when present */
ui_settings: uiSettings.length ? uiSettings : undefined,
/**
* Hamkar only: when true, apply brand colors to mobile header+menu and page body
* (including theme-two). Absent/false → keep factory chrome (no visual jump).
*/
brand_chrome:
isHamkarUi && ui?.brandManaged === true ? true : undefined,
/** Admin expiry modals — near/expired server, plugin, support */
subscription_alerts,
plugin_store_enabled: isKhanegi