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

fix(DicomWeb): expand panel at start and build fix #636

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 4 additions & 2 deletions src/components/DataBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,18 @@ export default defineComponent({
}
});

const openDicomWeb = computed(() => dicomWeb.isConfigured);
watch(
computed(() => dicomWeb.isConfigured),
openDicomWeb,
(configured) => {
if (configured) {
panels.value.push(DICOM_WEB_KEY);
} else {
// Remove from panels to avoid error in vuetify group.ts
removeFromArray(panels.value, DICOM_WEB_KEY);
}
}
},
{ immediate: true }
);

watch(
Expand Down
5 changes: 2 additions & 3 deletions src/store/dicom-web/dicom-web-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,8 @@ export const useDicomWebStore = defineStore('dicom-web', () => {
if (!loadResult) {
throw new Error('Did not receive a load result');
}

if (!loadResult.ok) {
throw loadResult.errors[0].cause;
if (loadResult.type === 'error') {
throw loadResult.error;
}

const selection = convertSuccessResultToDataSelection(loadResult);
Expand Down
Loading