Skip to content

Commit

Permalink
fix: display locale in navigation menu[WTEL-5697](https://webitel.atl…
Browse files Browse the repository at this point in the history
  • Loading branch information
Lera24 committed Dec 11, 2024
1 parent 03af571 commit b594523
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@vuelidate/core": "^2.0.3",
"@vuelidate/validators": "^2.0.4",
"@vueuse/core": "^11.0.3",
"@webitel/ui-sdk": "^24.12.13",
"@webitel/ui-sdk": "^24.12.18",
"axios": "^1.7.7",
"deep-equal": "^2.2.1",
"dompurify": "^3.1.2",
Expand Down
14 changes: 8 additions & 6 deletions src/modules/configuration/components/the-configuration.vue
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
<template>
<wt-navigation-menu
:nav="nav"
:icons="icons"/>
:icons="icons"
/>
</template>

<script setup>
import { useI18n } from 'vue-i18n';
import { computed, reactive } from 'vue';
import lookupsIcon from '../../../app/assets/icons/sprite/crm-lookups.svg';
import CrmSections from '@webitel/ui-sdk/src/enums/WebitelApplications/CrmSections.enum.js';
const { t } = useI18n();
const icons = [lookupsIcon];
const nav = [
const nav = reactive([
{
value: 'lookups',
name: t('lookups.lookups'),
name: computed(() => t('lookups.lookups')),
subNav: [
{
value: CrmSections.SOURCES,
name: t('lookups.sources.sources', 2),
name: computed(() => t('lookups.sources.sources', 2)),
route: 'lookups/sources',
},
{
value: CrmSections.SLAS,
name: t('lookups.slas.slas', 2),
name: computed(() => t('lookups.slas.slas', 2)),
route: 'lookups/slas',
},
],
},
];
]);
</script>

<style lang="scss" scoped>
Expand Down

0 comments on commit b594523

Please sign in to comment.