Planungen android
All checks were successful
Deploy to production / deploy (push) Successful in 2m17s
All checks were successful
Deploy to production / deploy (push) Successful in 2m17s
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
import apiClient from '@/utils/axios.js';
|
||||
import { mapGetters } from 'vuex';
|
||||
import MessageboxWidget from '../../components/MessageboxWidget.vue';
|
||||
import { toTranslatedParamOptions } from '@/utils/paramValues.js';
|
||||
|
||||
export default {
|
||||
name: "AdminInterestsView",
|
||||
@@ -120,7 +121,7 @@ export default {
|
||||
const response = await apiClient.post('/api/settings/getparamvalues', {
|
||||
type: 'language'
|
||||
});
|
||||
this.languages = response.data.map(item => { return { value: item.id, captionTr: `settings.personal.language.${item.name}` } });
|
||||
this.languages = toTranslatedParamOptions(response.data, 'settings.personal.language');
|
||||
} catch (err) {
|
||||
console.error('Error loading languages:', err);
|
||||
}
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
import Multiselect from 'vue-multiselect';
|
||||
import 'vue-multiselect/dist/vue-multiselect.min.css';
|
||||
import apiClient from '@/utils/axios.js';
|
||||
import { normalizeParamValues } from '@/utils/paramValues.js';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -98,7 +99,7 @@ export default {
|
||||
const response = await apiClient.post('/api/settings/getparamvalues', {
|
||||
type: 'gender'
|
||||
});
|
||||
this.genderOptions = response.data.map(g => ({ name: g.name, value: g.value }));
|
||||
this.genderOptions = normalizeParamValues(response.data).map(g => ({ name: g.name, value: g.value ?? g.id }));
|
||||
} catch (error) {
|
||||
console.error('Fehler beim Laden der Geschlechtsoptionen:', error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user