6 files + 23 − 5 Side-by-side Compare changes Side-by-side Inline Show whitespace changes Files 6 package.json +1 −1 Original line number Original line Diff line number Diff line { { "name": "ui", "name": "ui", "version": "3.13.0", "version": "3.13.1", "scripts": { "scripts": { "dev": "vite", "dev": "vite", "build": "vite build", "build": "vite build", Loading src/modules/project/pages/components/FormMetadata.vue +4 −0 Original line number Original line Diff line number Diff line Loading @@ -511,6 +511,10 @@ const visibilities = computed(() => projectStore.visibilities ?? []); const disciplines = computed(() => projectStore.disciplines ?? []); const disciplines = computed(() => projectStore.disciplines ?? []); const disciplineLabel = computed(() => { const disciplineLabel = computed(() => { let locale = i18n.locale.value; let locale = i18n.locale.value; // Ensure that the value of locale is a valid locale, otherwie the property for disciplineLabel will be inaccurate if (i18n.availableLocales.includes(locale) === false) { locale = i18n.fallbackLocale.value.toString(); } locale = locale.charAt(0).toUpperCase() + locale.slice(1); locale = locale.charAt(0).toUpperCase() + locale.slice(1); return `displayName${locale}`; return `displayName${locale}`; }); }); Loading src/modules/project/pages/components/data-publication/DataPublicationProjectData.vue +4 −0 Original line number Original line Diff line number Diff line Loading @@ -285,6 +285,10 @@ export default defineComponent({ }, }, disciplineLabel(): string { disciplineLabel(): string { let locale = this.$i18n.locale; let locale = this.$i18n.locale; // Ensure that the value of locale is a valid locale, otherwie the property for disciplineLabel will be inaccurate if (this.$i18n.availableLocales.includes(locale) === false) { locale = this.$i18n.fallbackLocale.toString(); } locale = locale.charAt(0).toUpperCase() + locale.slice(1); locale = locale.charAt(0).toUpperCase() + locale.slice(1); return `displayName${locale}`; return `displayName${locale}`; }, }, Loading src/modules/project/pages/components/data-publication/DataPublicationSummary.vue +4 −0 Original line number Original line Diff line number Diff line Loading @@ -180,6 +180,10 @@ export default defineComponent({ }, }, disciplineLabel(): string { disciplineLabel(): string { let locale = this.$i18n.locale; let locale = this.$i18n.locale; // Ensure that the value of locale is a valid locale, otherwie the property for disciplineLabel will be inaccurate if (this.$i18n.availableLocales.includes(locale) === false) { locale = this.$i18n.fallbackLocale.toString(); } locale = locale.charAt(0).toUpperCase() + locale.slice(1); locale = locale.charAt(0).toUpperCase() + locale.slice(1); return `displayName${locale}`; return `displayName${locale}`; }, }, Loading src/modules/resource/components/create-resource/ResourceMetadata.vue +4 −0 Original line number Original line Diff line number Diff line Loading @@ -376,6 +376,10 @@ const disciplines = computed(() => { }); }); const disciplineLabel = computed(() => { const disciplineLabel = computed(() => { let locale = i18n.locale.value; let locale = i18n.locale.value; // Ensure that the value of locale is a valid locale, otherwie the property for disciplineLabel will be inaccurate if (i18n.availableLocales.includes(locale) === false) { locale = i18n.fallbackLocale.value.toString(); } locale = locale.charAt(0).toUpperCase() + locale.slice(1); locale = locale.charAt(0).toUpperCase() + locale.slice(1); return `displayName${locale}`; return `displayName${locale}`; }); }); Loading src/modules/user/pages/UserProfile.vue +6 −4 Original line number Original line Diff line number Diff line Loading @@ -476,11 +476,13 @@ export default defineComponent({ }, }, computed: { computed: { disciplineLabel(): string { disciplineLabel(): string { if (this.$i18n.locale === "en") { let locale = this.$i18n.locale; return "displayNameEn"; // Ensure that the value of locale is a valid locale, otherwie the property for disciplineLabel will be inaccurate } else { if (this.$i18n.availableLocales.includes(locale) === false) { return "displayNameDe"; locale = this.$i18n.fallbackLocale.toString(); } } locale = locale.charAt(0).toUpperCase() + locale.slice(1); return `displayName${locale}`; }, }, disciplines(): DisciplineDto[] { disciplines(): DisciplineDto[] { return this.userStore.userProfile.disciplines return this.userStore.userProfile.disciplines Loading
package.json +1 −1 Original line number Original line Diff line number Diff line { { "name": "ui", "name": "ui", "version": "3.13.0", "version": "3.13.1", "scripts": { "scripts": { "dev": "vite", "dev": "vite", "build": "vite build", "build": "vite build", Loading
src/modules/project/pages/components/FormMetadata.vue +4 −0 Original line number Original line Diff line number Diff line Loading @@ -511,6 +511,10 @@ const visibilities = computed(() => projectStore.visibilities ?? []); const disciplines = computed(() => projectStore.disciplines ?? []); const disciplines = computed(() => projectStore.disciplines ?? []); const disciplineLabel = computed(() => { const disciplineLabel = computed(() => { let locale = i18n.locale.value; let locale = i18n.locale.value; // Ensure that the value of locale is a valid locale, otherwie the property for disciplineLabel will be inaccurate if (i18n.availableLocales.includes(locale) === false) { locale = i18n.fallbackLocale.value.toString(); } locale = locale.charAt(0).toUpperCase() + locale.slice(1); locale = locale.charAt(0).toUpperCase() + locale.slice(1); return `displayName${locale}`; return `displayName${locale}`; }); }); Loading
src/modules/project/pages/components/data-publication/DataPublicationProjectData.vue +4 −0 Original line number Original line Diff line number Diff line Loading @@ -285,6 +285,10 @@ export default defineComponent({ }, }, disciplineLabel(): string { disciplineLabel(): string { let locale = this.$i18n.locale; let locale = this.$i18n.locale; // Ensure that the value of locale is a valid locale, otherwie the property for disciplineLabel will be inaccurate if (this.$i18n.availableLocales.includes(locale) === false) { locale = this.$i18n.fallbackLocale.toString(); } locale = locale.charAt(0).toUpperCase() + locale.slice(1); locale = locale.charAt(0).toUpperCase() + locale.slice(1); return `displayName${locale}`; return `displayName${locale}`; }, }, Loading
src/modules/project/pages/components/data-publication/DataPublicationSummary.vue +4 −0 Original line number Original line Diff line number Diff line Loading @@ -180,6 +180,10 @@ export default defineComponent({ }, }, disciplineLabel(): string { disciplineLabel(): string { let locale = this.$i18n.locale; let locale = this.$i18n.locale; // Ensure that the value of locale is a valid locale, otherwie the property for disciplineLabel will be inaccurate if (this.$i18n.availableLocales.includes(locale) === false) { locale = this.$i18n.fallbackLocale.toString(); } locale = locale.charAt(0).toUpperCase() + locale.slice(1); locale = locale.charAt(0).toUpperCase() + locale.slice(1); return `displayName${locale}`; return `displayName${locale}`; }, }, Loading
src/modules/resource/components/create-resource/ResourceMetadata.vue +4 −0 Original line number Original line Diff line number Diff line Loading @@ -376,6 +376,10 @@ const disciplines = computed(() => { }); }); const disciplineLabel = computed(() => { const disciplineLabel = computed(() => { let locale = i18n.locale.value; let locale = i18n.locale.value; // Ensure that the value of locale is a valid locale, otherwie the property for disciplineLabel will be inaccurate if (i18n.availableLocales.includes(locale) === false) { locale = i18n.fallbackLocale.value.toString(); } locale = locale.charAt(0).toUpperCase() + locale.slice(1); locale = locale.charAt(0).toUpperCase() + locale.slice(1); return `displayName${locale}`; return `displayName${locale}`; }); }); Loading
src/modules/user/pages/UserProfile.vue +6 −4 Original line number Original line Diff line number Diff line Loading @@ -476,11 +476,13 @@ export default defineComponent({ }, }, computed: { computed: { disciplineLabel(): string { disciplineLabel(): string { if (this.$i18n.locale === "en") { let locale = this.$i18n.locale; return "displayNameEn"; // Ensure that the value of locale is a valid locale, otherwie the property for disciplineLabel will be inaccurate } else { if (this.$i18n.availableLocales.includes(locale) === false) { return "displayNameDe"; locale = this.$i18n.fallbackLocale.toString(); } } locale = locale.charAt(0).toUpperCase() + locale.slice(1); return `displayName${locale}`; }, }, disciplines(): DisciplineDto[] { disciplines(): DisciplineDto[] { return this.userStore.userProfile.disciplines return this.userStore.userProfile.disciplines Loading