diff --git a/frontend/src/variants/components/FilterForm/QuickPresets.vue b/frontend/src/variants/components/FilterForm/QuickPresets.vue index ef00d1c77..c715440e1 100644 --- a/frontend/src/variants/components/FilterForm/QuickPresets.vue +++ b/frontend/src/variants/components/FilterForm/QuickPresets.vue @@ -323,6 +323,30 @@ const quickPresetWrapper = computed({ }, }) +const quickPresetsComplete = computed(() => { + const result = {} + for (const [name, theQuickPresets] of Object.entries(props.quickPresets)) { + let skip = false + for (const key of [ + 'inheritance', + 'frequency', + 'impact', + 'quality', + 'chromosomes', + 'flagsetc', + ]) { + if (!theQuickPresets[key]) { + skip = true + break + } + } + if (!skip) { + result[name] = theQuickPresets + } + } + return result +}) + /** Refresh all presets. */ const refreshAllRefs = () => { refreshInheritanceRef() @@ -366,7 +390,7 @@ onMounted(() => { v-model="quickPresetWrapper" class="custom-select custom-select-sm" > - + {{ value.label ?? name }} custom diff --git a/frontend/src/variants/components/QueryPresets/SetEditor.vue b/frontend/src/variants/components/QueryPresets/SetEditor.vue index c3c5f362d..b1406aeef 100644 --- a/frontend/src/variants/components/QueryPresets/SetEditor.vue +++ b/frontend/src/variants/components/QueryPresets/SetEditor.vue @@ -250,7 +250,6 @@ const handleAddClicked = async (category) => { quality: null, chromosome: null, flagsetc: null, - inheritance: null, } } else if (category === 'qualitypresets') { payload = { diff --git a/frontend/src/variants/components/QueryPresets/SetQuickPresets.vue b/frontend/src/variants/components/QueryPresets/SetQuickPresets.vue index 114930447..3af1c2122 100644 --- a/frontend/src/variants/components/QueryPresets/SetQuickPresets.vue +++ b/frontend/src/variants/components/QueryPresets/SetQuickPresets.vue @@ -1,6 +1,8 @@ + + Warning! The query settings are incomplete and will not + be available in the filter form unless all values are set. + Inheritance