@indigina/ui-kit 1.1.216 → 1.1.217
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.
|
@@ -7922,6 +7922,8 @@ class KitGridViewsComponent {
|
|
|
7922
7922
|
this.collapsedListDropdownText = signal(this.translateService.instant('kit.views.more'), ...(ngDevMode ? [{ debugName: "collapsedListDropdownText" }] : []));
|
|
7923
7923
|
this.skipQueryParamsUpdate = signal(false, ...(ngDevMode ? [{ debugName: "skipQueryParamsUpdate" }] : []));
|
|
7924
7924
|
this.needToResetQueryParams = signal(false, ...(ngDevMode ? [{ debugName: "needToResetQueryParams" }] : []));
|
|
7925
|
+
this.userPermissions = this.store.selectSignal(KIT_USER_PERMISSIONS_STATE_TOKEN);
|
|
7926
|
+
this.allowedSystemViews = computed(() => this.systemViews().filter(view => !view.permission || this.userPermissions().permissions.includes(view.permission)), ...(ngDevMode ? [{ debugName: "allowedSystemViews" }] : []));
|
|
7925
7927
|
}
|
|
7926
7928
|
ngOnInit() {
|
|
7927
7929
|
this.fetchViews();
|
|
@@ -8010,7 +8012,7 @@ class KitGridViewsComponent {
|
|
|
8010
8012
|
this.store.dispatch([
|
|
8011
8013
|
new FetchGridViews({
|
|
8012
8014
|
group: this.viewGroup(),
|
|
8013
|
-
defaultItems: this.
|
|
8015
|
+
defaultItems: this.allowedSystemViews(),
|
|
8014
8016
|
}),
|
|
8015
8017
|
new FetchGridViewsConfig(this.viewConfigGroup()),
|
|
8016
8018
|
]).subscribe(() => {
|