diff --git a/dashboard-prime/src/common-components/stores/UseAppConfig.js b/dashboard-prime/src/common-components/stores/UseAppConfig.js index 1db68d05a9..64be67cc90 100644 --- a/dashboard-prime/src/common-components/stores/UseAppConfig.js +++ b/dashboard-prime/src/common-components/stores/UseAppConfig.js @@ -85,7 +85,6 @@ export const useAppConfig = defineStore('dashboardAppConfig', () => { const expireUnusedProjectsOlderThan = computed(() => config.value.expireUnusedProjectsOlderThan) const minimumProjectPoints = computed(() => config.value.minimumProjectPoints) const maxProjectsPerAdmin = computed(() => config.value.maxProjectsPerAdmin) - const numProjectsForTableView = computed(() => config.value.numProjectsForTableView) const minimumSubjectPoints = computed(() => config.value.minimumSubjectPoints) const maxSubjectsPerProject = computed(() => config.value.maxSubjectsPerProject) const userCommunityBeforeLabel = computed(() => config.value.userCommunityBeforeLabel || '') @@ -123,6 +122,7 @@ export const useAppConfig = defineStore('dashboardAppConfig', () => { const minUsernameLength = computed(() => config.value.minUsernameLength) const minPasswordLength = computed(() => config.value.minPasswordLength) const maxPasswordLength = computed(() => config.value.maxPasswordLength) + const numProjectsToStartShowingAsCards = computed(() => config.value.numProjectsToStartShowingAsCards) return { loadConfigState, refreshConfig, @@ -166,7 +166,6 @@ export const useAppConfig = defineStore('dashboardAppConfig', () => { expireUnusedProjectsOlderThan, minimumProjectPoints, maxProjectsPerAdmin, - numProjectsForTableView, minimumSubjectPoints, maxSubjectsPerProject, userCommunityBeforeLabel, @@ -204,5 +203,6 @@ export const useAppConfig = defineStore('dashboardAppConfig', () => { minUsernameLength, minPasswordLength, maxPasswordLength, + numProjectsToStartShowingAsCards, } }) \ No newline at end of file diff --git a/dashboard-prime/src/components/projects/MyProject.vue b/dashboard-prime/src/components/projects/MyProject.vue index d74248e16b..866f222729 100644 --- a/dashboard-prime/src/components/projects/MyProject.vue +++ b/dashboard-prime/src/components/projects/MyProject.vue @@ -18,12 +18,14 @@ import { useAppConfig } from '@/common-components/stores/UseAppConfig.js' import ReminderMessage from '@/components/utils/misc/ReminderMessage.vue' import { useNumberFormat } from '@/common-components/filter/UseNumberFormat.js' import ProjectExpirationWarning from '@/components/projects/ProjectExpirationWarning.vue' +import { useAdminProjectsState } from '@/stores/UseAdminProjectsState.js' const props = defineProps(['project', 'disableSortControl']) const appConfig = useAppConfig() const accessState = useAccessState() const emit = defineEmits(['project-deleted', 'copy-project', 'pin-removed', 'sort-changed-requested']) const numberFormat = useNumberFormat() +const projectsState = useAdminProjectsState() const announcer = useSkillsAnnouncer() // data items @@ -169,7 +171,11 @@ defineExpose({