From 4b4c21b43aa884fd03811e92ab0baa87a6f7fe2b Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 13 May 2026 17:58:51 +0200 Subject: [PATCH 1/2] fix(appstore): show reason why limit app to groups is not possible Signed-off-by: Ferdinand Thiessen --- .../components/AppstoreSidebar/AppDetailsTab.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/appstore/src/components/AppstoreSidebar/AppDetailsTab.vue b/apps/appstore/src/components/AppstoreSidebar/AppDetailsTab.vue index 6d26d20e15be7..82ede0831e58f 100644 --- a/apps/appstore/src/components/AppstoreSidebar/AppDetailsTab.vue +++ b/apps/appstore/src/components/AppstoreSidebar/AppDetailsTab.vue @@ -17,6 +17,7 @@ import BadgeAppDaemon from '../BadgeAppDaemon.vue' import BadgeAppLevel from '../BadgeAppLevel.vue' import BadgeAppScore from '../BadgeAppScore.vue' import { useAppsStore } from '../../store/apps.ts' +import { canLimitToGroups } from '../../utils/appStatus.ts' const { app } = defineProps<{ app: IAppstoreApp | IAppstoreExApp }>() @@ -43,7 +44,7 @@ const appAuthors = computed(() => { .join(', ') }) -const groupsAppIsLimitedto = computed(() => { +const groupsAppIsLimitedTo = computed(() => { if (!app.groups) { return [] } @@ -104,6 +105,10 @@ const appCategories = computed(() => { .join(', ') }) +const cannotLimitToGroups = computed(() => { + return app.active && !canLimitToGroups(app) +}) + /** * Get the author name from the XML node * @@ -144,13 +149,17 @@ 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') }}