Gate Roll Call behind the opt-in business module.
Super Admin can enable it per business; nav and pages stay hidden when off. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
c4e846564e
commit
b25f3cbea0
@@ -11,6 +11,7 @@ export const BUSINESS_DASHBOARD_MODULE_IDS = [
|
||||
'workshops',
|
||||
'finance',
|
||||
'multilanguage_data',
|
||||
'roll_call',
|
||||
] as const
|
||||
|
||||
/** Optional customer-dashboard modules. Always-on: home, profile, addresses, orders, favorites. */
|
||||
@@ -42,6 +43,7 @@ export const BUSINESS_DASHBOARD_MODULE_LABELS: Record<
|
||||
workshops: 'Workshops',
|
||||
finance: 'Finance',
|
||||
multilanguage_data: 'MultiLanguage Data',
|
||||
roll_call: 'Roll Call',
|
||||
}
|
||||
|
||||
export const CUSTOMER_MODULE_LABELS: Record<CustomerModuleId, string> = {
|
||||
@@ -87,7 +89,8 @@ export const DEFAULT_ENABLED_BUSINESS_MODULES: BusinessModuleId[] =
|
||||
(id) =>
|
||||
id !== 'workshops' &&
|
||||
id !== 'multilanguage_data' &&
|
||||
id !== 'store_installments',
|
||||
id !== 'store_installments' &&
|
||||
id !== 'roll_call',
|
||||
)
|
||||
|
||||
export const DEFAULT_HOME_CHARTS: [HomeChartId, HomeChartId] = [
|
||||
|
||||
Reference in New Issue
Block a user