diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 72d7644e0b..f9afc5eb55 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -32,8 +32,6 @@ declare module '@vue/runtime-core' { ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElSelect: typeof import('element-plus/es')['ElSelect'] - ElTable: typeof import('element-plus/es')['ElTable'] - ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] ElTimeSelect: typeof import('element-plus/es')['ElTimeSelect'] diff --git a/frontend/src/modules/admin/modules/collections/components/lf-collection-add.vue b/frontend/src/modules/admin/modules/collections/components/lf-collection-add.vue index 4cbf0944e0..56e89dddc6 100644 --- a/frontend/src/modules/admin/modules/collections/components/lf-collection-add.vue +++ b/frontend/src/modules/admin/modules/collections/components/lf-collection-add.vue @@ -165,12 +165,8 @@ import { CollectionModel, CollectionRequest, } from '../models/collection.model'; -import { InsightsProjectsService } from '../../insights-projects/services/insights-projects.service'; -import { useInsightsProjectsStore } from '../../insights-projects/pinia'; import { COLLECTIONS_SERVICE } from '../services/collections.service'; -const insightsProjectsStore = useInsightsProjectsStore(); - const emit = defineEmits<{(e: 'update:modelValue', value: boolean): void; (e: 'onCollectionEdited'): void; (e: 'onCollectionCreated'): void; @@ -227,9 +223,6 @@ const fillForm = (record?: CollectionModel) => { }; onMounted(() => { - InsightsProjectsService.list({}).then((response) => { - insightsProjectsStore.setInsightsProjects(response.rows); - }); if (isEditForm.value) { loading.value = true; fillForm(props.collection); diff --git a/frontend/src/modules/admin/modules/collections/components/lf-insights-projects-list-dropdown.vue b/frontend/src/modules/admin/modules/collections/components/lf-insights-projects-list-dropdown.vue index 5f9f5b6aa2..0b3af11dd8 100644 --- a/frontend/src/modules/admin/modules/collections/components/lf-insights-projects-list-dropdown.vue +++ b/frontend/src/modules/admin/modules/collections/components/lf-insights-projects-list-dropdown.vue @@ -46,8 +46,19 @@ /> {{ project.name }} +
+ + Loading projects... +
+
+ + Loading projects... +
No projects found
@@ -56,9 +67,17 @@