@flusys/ng-auth 0.1.0-alpha.1 → 0.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1512,16 +1512,24 @@ class AdministrationPageComponent {
|
|
|
1512
1512
|
requiresCompanyFeature: true,
|
|
1513
1513
|
},
|
|
1514
1514
|
];
|
|
1515
|
+
/** Check if company feature is enabled */
|
|
1516
|
+
companyFeatureEnabled = computed(() => isCompanyFeatureEnabled(this.appConfig), ...(ngDevMode ? [{ debugName: "companyFeatureEnabled" }] : []));
|
|
1515
1517
|
/** Visible tabs based on config */
|
|
1516
1518
|
visibleTabs = computed(() => {
|
|
1517
|
-
return this.allTabs.filter((tab) => !tab.requiresCompanyFeature ||
|
|
1519
|
+
return this.allTabs.filter((tab) => !tab.requiresCompanyFeature || this.companyFeatureEnabled());
|
|
1518
1520
|
}, ...(ngDevMode ? [{ debugName: "visibleTabs" }] : []));
|
|
1521
|
+
/** Dynamic subtitle based on visible features */
|
|
1522
|
+
subtitle = computed(() => {
|
|
1523
|
+
return this.companyFeatureEnabled()
|
|
1524
|
+
? 'Manage users, companies, and branches'
|
|
1525
|
+
: 'Manage users';
|
|
1526
|
+
}, ...(ngDevMode ? [{ debugName: "subtitle" }] : []));
|
|
1519
1527
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: AdministrationPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1520
1528
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.0", type: AdministrationPageComponent, isStandalone: true, selector: "lib-administration-page", ngImport: i0, template: `
|
|
1521
1529
|
<div class="administration-page p-4">
|
|
1522
1530
|
<div class="administration-header mb-4">
|
|
1523
1531
|
<h1 class="text-2xl font-bold m-0">Administration</h1>
|
|
1524
|
-
<p class="text-gray-500 mt-1">
|
|
1532
|
+
<p class="text-gray-500 mt-1">{{ subtitle() }}</p>
|
|
1525
1533
|
</div>
|
|
1526
1534
|
|
|
1527
1535
|
<div class="administration-tabs flex gap-1 mb-4 border-b border-gray-200">
|
|
@@ -1548,7 +1556,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
|
|
|
1548
1556
|
<div class="administration-page p-4">
|
|
1549
1557
|
<div class="administration-header mb-4">
|
|
1550
1558
|
<h1 class="text-2xl font-bold m-0">Administration</h1>
|
|
1551
|
-
<p class="text-gray-500 mt-1">
|
|
1559
|
+
<p class="text-gray-500 mt-1">{{ subtitle() }}</p>
|
|
1552
1560
|
</div>
|
|
1553
1561
|
|
|
1554
1562
|
<div class="administration-tabs flex gap-1 mb-4 border-b border-gray-200">
|