Skip to content

Commit

Permalink
#2490 Modify loading of config in components
Browse files Browse the repository at this point in the history
  • Loading branch information
dwalizer committed May 8, 2024
1 parent 8084747 commit 90c410c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dashboard-prime/src/components/skills/SkillPage.vue
Expand Up @@ -45,6 +45,9 @@ const skillsState = useSkillsState()
const isReadOnlyProj = computed(() => projConfig.isReadOnlyProj);
onMounted(() => {
if (!projConfig.loadingProjConfig) {
loadData();
}
})
// Vue caches components and when re-directed to the same component the path will be pushed
Expand Down
2 changes: 1 addition & 1 deletion dashboard-prime/src/components/subjects/SubjectPage.vue
Expand Up @@ -28,7 +28,7 @@ onMounted(() => {
})
const isLoadingData = computed(() => {
return subjectState.isLoadingSubject || projConfig.loadingProjConfig
return subjectState.isLoadingSubject; // || projConfig.loadingProjConfig
})
const navItems = computed(() => {
Expand Down

0 comments on commit 90c410c

Please sign in to comment.