Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#354 Extend actor references component - manual references #355

Merged
merged 4 commits into from
Jan 20, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#354 Support koppeling update
wouter-adriaens committed Jan 16, 2025
commit 7a0939dc67f9db36c673740d5b7a6f7c0931e836
14 changes: 12 additions & 2 deletions src/components/smart/OeActorReferences.vue
Original file line number Diff line number Diff line change
@@ -57,8 +57,8 @@ import {
VlAlert,
VlLink,
} from '@govflanders/vl-ui-design-system-vue3';
import { sortBy } from 'lodash';
import { type ComponentPublicInstance, computed, onBeforeMount, ref } from 'vue';
import { isEqual, sortBy } from 'lodash';
import { type ComponentPublicInstance, computed, onBeforeMount, ref, watch } from 'vue';
import OeLoader from '@components/dumb/OeLoader.vue';
import { IdService } from '@services/id.service';
import type { IReference } from '@models/reference';
@@ -84,6 +84,16 @@ onBeforeMount(async () => {
}
});

watch(
() => props.koppeling,
(newValue, oldValue) => {
if (!isEqual(newValue, oldValue)) {
references.value = newValue;
}
},
{ deep: true }
);

const applications = computed(() => sortBy(references.value?.applications, 'title'));

const accordionsOpen = ref(false);