From cfb0903cfb11442ba9d7dc0ea0b57c4676612e35 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 13 May 2026 17:58:51 +0200 Subject: [PATCH] fix(appstore): show reason why limit app to groups is not possible Signed-off-by: Ferdinand Thiessen --- .../src/components/AppstoreSidebar/AppDetailsTab.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/appstore/src/components/AppstoreSidebar/AppDetailsTab.vue b/apps/appstore/src/components/AppstoreSidebar/AppDetailsTab.vue index 3d3ccc29aac..19a1b7ed8cd 100644 --- a/apps/appstore/src/components/AppstoreSidebar/AppDetailsTab.vue +++ b/apps/appstore/src/components/AppstoreSidebar/AppDetailsTab.vue @@ -18,6 +18,7 @@ import BadgeAppLevel from '../BadgeAppLevel.vue' import BadgeAppScore from '../BadgeAppScore.vue' import { useLimitedGroups } from '../../composables/useLimitedGroups.ts' import { useAppsStore } from '../../store/apps.ts' +import { canLimitToGroups } from '../../utils/appStatus.ts' const { app } = defineProps<{ app: IAppstoreApp | IAppstoreExApp }>() @@ -98,6 +99,10 @@ const appCategories = computed(() => { .join(', ') }) +const cannotLimitToGroups = computed(() => { + return app.active && !canLimitToGroups(app) +}) + /** * Get the author name from the XML node * @@ -138,6 +143,10 @@ function authorName(xmlNode): string { + + {{ t('appstore', 'This app cannot be limited to groups because it provides functionality that is executed before group membership is determined.') }} + +

{{ t('appstore', 'Limited to groups') }}