diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index fa9484c..3d4e44a 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -17,6 +17,10 @@ margin-bottom: 0rem; } +.app-header-link { + margin-right: 2.5rem; +} + .logo { height: 100%; width: auto; diff --git a/src/components/CheckboxCompnent.vue b/src/components/CheckboxCompnent.vue index f7be416..909130d 100644 --- a/src/components/CheckboxCompnent.vue +++ b/src/components/CheckboxCompnent.vue @@ -10,6 +10,7 @@ const props = defineProps<{ selectAll?: () => void; isDisabled?: boolean; isCapitalized?: boolean; + isIndeterminate?: boolean; }>(); const emit = defineEmits(['update:modelValue', 'selectAll']); @@ -39,7 +40,7 @@ const model = computed({ :checked="checked" :disabled="isDisabled" /> - + diff --git a/src/components/FiltersComponent.vue b/src/components/FiltersComponent.vue index 3973939..69a2307 100644 --- a/src/components/FiltersComponent.vue +++ b/src/components/FiltersComponent.vue @@ -15,29 +15,8 @@ const props = defineProps<{ }>(); const sourcesStore = useSourcesStore(); -const availableSources = ref(sourcesStore.sourcesList); const { shouldClose } = toRefs(props); -const handleSearchFilters = (event: Event) => { - if (!(event.target instanceof HTMLInputElement)) - availableSources.value = sourcesStore.sourcesList; - const target = event.target as HTMLInputElement; - const value = target.value; - let temp = undefined; - - for (const [category, sources] of Object.entries(sourcesStore.sourcesList)) { - const filteredSources = sources.filter((source) => - source.name.toLowerCase().includes(value.toLowerCase()) - ); - if (filteredSources.length > 0) { - temp = temp || {}; - temp[category] = filteredSources; - } - } - - availableSources.value = temp || sourcesStore.sourcesList; -}; - const hideFilters = ref(false); watch(shouldClose, (close) => { if (close) { @@ -45,10 +24,6 @@ watch(shouldClose, (close) => { } }); -watch(sourcesStore, () => { - availableSources.value = sourcesStore.sourcesList; -}); - const filters = useFiltersStore(); const toggleFilters = () => (hideFilters.value = !hideFilters.value); @@ -70,22 +45,6 @@ const clearFilters = () => {
-
-

{{ $t('languages') }}{{ $t(':') }}

- - - -

{{ $t('sources') }}{{ $t(':') }}

{
+
+

{{ $t('languages') }}{{ $t(':') }}

+ + + +

{{ $t('removeAll') }}

@@ -121,29 +96,22 @@ const clearFilters = () => { {{ $t('noFiltersSelected') }}

- -
- {{ $t('languages') }} + {{ $t('sources') }}
- +
- {{ $t('sources') }} + {{ $t('sdgsAcronym') }}
- +
- {{ $t('sdgsAcronym') }} + {{ $t('languages') }}
- +
diff --git a/src/components/FooterComponent.vue b/src/components/FooterComponent.vue index 74a8af5..48b660c 100644 --- a/src/components/FooterComponent.vue +++ b/src/components/FooterComponent.vue @@ -1,5 +1,8 @@