From cb5d643839031befe2a43671449050ee913c6639 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Mon, 18 Mar 2024 15:22:27 -0300 Subject: [PATCH] Replaces URL usages by Url to avoid dynamic component initilization issues on Vue3. --- .../edition/metadatum-edition-form.vue | 4 +- .../metadata-types/tainacan-form-item.vue | 2 +- .../url/{FormURL.vue => FormUrl.vue} | 100 ++++++++++-------- .../url/{TainacanURL.vue => TainacanUrl.vue} | 1 - .../components/modals/bulk-edition-modal.vue | 2 +- .../blocks/item-submission-form/theme.js | 4 +- 6 files changed, 59 insertions(+), 54 deletions(-) rename src/views/admin/components/metadata-types/url/{FormURL.vue => FormUrl.vue} (61%) rename src/views/admin/components/metadata-types/url/{TainacanURL.vue => TainacanUrl.vue} (98%) diff --git a/src/views/admin/components/edition/metadatum-edition-form.vue b/src/views/admin/components/edition/metadatum-edition-form.vue index 7fd1912b9..57304807d 100644 --- a/src/views/admin/components/edition/metadatum-edition-form.vue +++ b/src/views/admin/components/edition/metadatum-edition-form.vue @@ -407,7 +407,7 @@ import FormNumeric from '../metadata-types/numeric/FormNumeric.vue'; import FormUser from '../metadata-types/user/FormUser.vue'; import FormGeoCoordinate from '../metadata-types/geocoordinate/FormGeoCoordinate.vue'; - import FormURL from '../metadata-types/url/FormURL.vue'; + import FormUrl from '../metadata-types/url/FormUrl.vue'; export default { name: 'MetadatumEditionForm', @@ -420,7 +420,7 @@ 'tainacan-form-numeric': FormNumeric, 'tainacan-form-user': FormUser, 'tainacan-form-geocoordinate': FormGeoCoordinate, - 'tainacan-form-url': FormURL + 'tainacan-form-url': FormUrl }, mixins: [ formHooks ], props: { diff --git a/src/views/admin/components/metadata-types/tainacan-form-item.vue b/src/views/admin/components/metadata-types/tainacan-form-item.vue index 7f9a8f43c..53ae752db 100644 --- a/src/views/admin/components/metadata-types/tainacan-form-item.vue +++ b/src/views/admin/components/metadata-types/tainacan-form-item.vue @@ -181,7 +181,7 @@ TainacanCompound: defineAsyncComponent(() => import('./compound/TainacanCompound.vue')), TainacanUser: defineAsyncComponent(() => import('./user/TainacanUser.vue')), TainacanGeocoordinate: defineAsyncComponent(() => import('./geocoordinate/TainacanGeoCoordinate.vue')), - TainacanURL: defineAsyncComponent(() => import('./url/TainacanURL.vue')) + TainacanUrl: defineAsyncComponent(() => import('./url/TainacanUrl.vue')) }, props: { itemMetadatum: Object, diff --git a/src/views/admin/components/metadata-types/url/FormURL.vue b/src/views/admin/components/metadata-types/url/FormUrl.vue similarity index 61% rename from src/views/admin/components/metadata-types/url/FormURL.vue rename to src/views/admin/components/metadata-types/url/FormUrl.vue index e1a155805..98136db75 100644 --- a/src/views/admin/components/metadata-types/url/FormURL.vue +++ b/src/views/admin/components/metadata-types/url/FormUrl.vue @@ -1,5 +1,5 @@