Skip to content

Commit

Permalink
Merge pull request #206 from webitel/feature/global-variables
Browse files Browse the repository at this point in the history
Feature/global variables [WTEL-4195]
  • Loading branch information
dlohvinov authored Feb 19, 2024
2 parents f485ede + a046522 commit f0d0162
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webitel/ui-sdk",
"version": "24.2.51",
"version": "24.2.52",
"private": false,
"scripts": {
"dev": "vite",
Expand Down
1 change: 1 addition & 0 deletions src/enums/WebitelApplications/AdminSections.enum.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const AdminSections = Object.freeze({
// SYSTEM
CHANGELOGS: 'changelogs',
CONFIGURATION: 'configuration',
GLOBAL_VARIABLES: 'global-variables',
});

export default AdminSections;
1 change: 1 addition & 0 deletions src/locale/en/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ export default {
[AdminSections.OBJECTS]: 'Objects',
[AdminSections.CHANGELOGS]: 'Change log',
[AdminSections.CONFIGURATION]: 'Configuration',
[AdminSections.GLOBAL_VARIABLES]: 'Global variables',
},
},
},
Expand Down
1 change: 1 addition & 0 deletions src/locale/ru/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ export default {
[AdminSections.OBJECTS]: 'Разделы',
[AdminSections.CHANGELOGS]: 'Журнал изменений',
[AdminSections.CONFIGURATION]: 'Конфигурация',
[AdminSections.GLOBAL_VARIABLES]: 'Глобальные переменные',
},
},
},
Expand Down
1 change: 1 addition & 0 deletions src/locale/ua/ua.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ export default {
[AdminSections.OBJECTS]: 'Розділи',
[AdminSections.CHANGELOGS]: 'Журнал змін',
[AdminSections.CONFIGURATION]: 'Конфігурація',
[AdminSections.GLOBAL_VARIABLES]: 'Глобальні змінні',
},
},
},
Expand Down
4 changes: 4 additions & 0 deletions src/modules/Userinfo/classes/ApplicationsAccess.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ const applicationsAccess = (value = true) => ({
_enabled: value,
_locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.CONFIGURATION}`,
},
[AdminSections.GLOBAL_VARIABLES]: {
_enabled: value,
_locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.GLOBAL_VARIABLES}`,
},
},
[WebitelApplications.AUDIT]: {
_enabled: value,
Expand Down

0 comments on commit f0d0162

Please sign in to comment.