Skip to content

Commit 975d601

Browse files
susnuxbackportbot[bot]
authored andcommitted
fix(appstore): show reason why limit app to groups is not possible
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 3c59e48 commit 975d601

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

apps/appstore/src/components/AppstoreSidebar/AppDetailsTab.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import BadgeAppDaemon from '../BadgeAppDaemon.vue'
1717
import BadgeAppLevel from '../BadgeAppLevel.vue'
1818
import BadgeAppScore from '../BadgeAppScore.vue'
1919
import { useAppsStore } from '../../store/apps.ts'
20+
import { canLimitToGroups } from '../../utils/appStatus.ts'
2021
2122
const { app } = defineProps<{ app: IAppstoreApp | IAppstoreExApp }>()
2223
@@ -104,6 +105,10 @@ const appCategories = computed(() => {
104105
.join(', ')
105106
})
106107
108+
const cannotLimitToGroups = computed(() => {
109+
return app.active && !canLimitToGroups(app)
110+
})
111+
107112
/**
108113
* Get the author name from the XML node
109114
*

0 commit comments

Comments
 (0)