Skip to content

Commit

Permalink
fix: qualifications access entry not showing job/rank on load
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Trost <[email protected]>
  • Loading branch information
galexrt committed Aug 30, 2024
1 parent a9927f1 commit d68c6e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/components/qualifications/QualificationAccessEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ async function setFromProps(): Promise<void> {
}
}
onMounted(async () => setFromProps());
setFromProps();
watch(props, () => setFromProps());
watch(selectedAccessType, async () => {
Expand Down Expand Up @@ -171,6 +170,7 @@ watch(selectedAccessRole, () => {
:disabled="readOnly"
class="flex-1"
option-attribute="label"
searchable
:search-attributes="['name', 'label']"
:options="jobs ?? []"
:placeholder="$t('common.job')"
Expand All @@ -191,6 +191,7 @@ watch(selectedAccessRole, () => {
:disabled="readOnly || !selectedJob"
class="flex-1"
option-attribute="label"
searchable
:search-attributes="['name', 'label']"
:options="selectedJob?.grades ?? []"
:placeholder="$t('common.rank')"
Expand All @@ -212,6 +213,7 @@ watch(selectedAccessRole, () => {
:disabled="readOnly"
class="flex-1"
option-attribute="label"
searchable
:search-attributes="['label']"
:options="entriesAccessRoles"
:placeholder="$t('common.access')"
Expand Down

0 comments on commit d68c6e4

Please sign in to comment.