Skip to content
Snippets Groups Projects

New: Add the English version and the 3 digits of DFG Fachsystematik

1 file
+ 10
4
Compare changes
  • Side-by-side
  • Inline
+ 10
4
@@ -101,14 +101,14 @@
:options="disciplines"
:multiple="true"
:hide-selected="true"
label="displayName"
track-by="displayName"
:label="disciplineLabel"
:track-by="disciplineLabel"
:placeholder="$t('projectDiscipline')">
<template slot="singleLabel" slot-scope="props" v-bind:disabled="!(this.isOwner || isNewProject)">
{{ props.option.displayName }}
{{ props.option[disciplineLabel] }}
</template>
<template slot="option" slot-scope="props" v-bind:disabled="!(this.isOwner || isNewProject)">
{{ props.option.displayName }}
{{ props.option[disciplineLabel] }}
</template>
</multiselect>
</b-form-group>
@@ -308,6 +308,11 @@ export default Vue.extend({
},
beforeMount() {
i18n.locale = this.$props.languageLocale;
if (this.$props.languageLocale === 'en') {
this.disciplineLabel = 'displayNameEn';
} else {
this.disciplineLabel = 'displayNameDe';
}
},
data() {
return {
@@ -321,6 +326,7 @@ export default Vue.extend({
isUploadInProgess: false,
color: '#00549f',
displayNameIsLocked: false,
disciplineLabel: 'displayNameEn',
form: {
ProjectName: '',
DisplayName: '',
Loading