Skip to content

Commit

Permalink
Merge pull request #338 from webitel/feature/add-sla-page-in-crm
Browse files Browse the repository at this point in the history
feature: add sla page in crm section [WTEL-5379]
  • Loading branch information
Lera24 authored Oct 30, 2024
2 parents 7921ca8 + 6eed211 commit eadbabf
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 31 deletions.

This file was deleted.

6 changes: 3 additions & 3 deletions docs/pages/webitel-ui/modules/NavigationMenu/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@
</template>
<script setup>
import CrmConfigurationSections from '@webitel/ui-sdk/src/enums/WebitelApplications/CrmConfigurationSections.enum';
import CrmSections from '@webitel/ui-sdk/src/enums/WebitelApplications/CrmSections.enum';
import { useI18n } from 'vue-i18n';
import NavigationMenu from '@webitel/ui-sdk/src/modules/NavigationMenu/components/navigation-menu.vue';
const { t } = useI18n();
const navItems = [{
value: CrmConfigurationSections.LOOKUPS,
value: 'lookups',
name: t('configuration.lookups'),
subNav: [
{
value: CrmConfigurationSections.SOURCES,
value: CrmSections.SOURCES,
name: t('configuration.sources'),
route: "sources",
},
Expand Down
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.10.52",
"version": "24.10.53",
"private": false,
"scripts": {
"dev": "vite",
Expand Down
14 changes: 0 additions & 14 deletions src/enums/WebitelApplications/CrmConfigurationSections.enum.js

This file was deleted.

12 changes: 11 additions & 1 deletion src/enums/WebitelApplications/CrmSections.enum.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
const CrmSections = Object.freeze({
CONTACTS: 'contacts',
CONFIGURATION: 'configuration',

// CONFIGURATION - LOOKUPS
SLA: 'sla',
SERVICE_CATALOG: 'service-catalog',
PRIORITIES: 'priorities',
STATUSES: 'statuses',
SOURCES: 'sources',
CLOSURE_REASONS: 'closure-reasons',
CONTACT_GROUPS: 'contact-groups',
CASE_SOURCES: 'case-sources',
CUSTOM_LOOKUPS: 'custom-lookups',
});

export default CrmSections;
3 changes: 0 additions & 3 deletions src/enums/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import TypesExportedSettings
// Webitel Applications group
import AdminSections from './WebitelApplications/AdminSections.enum.js';
import AuditorSections from './WebitelApplications/AuditorSections.enum.js';
import CrmConfigurationSections
from './WebitelApplications/CrmConfigurationSections.enum.js';
import CrmSections from './WebitelApplications/CrmSections.enum.js';
import SupervisorSections
from './WebitelApplications/SupervisorSections.enum.js';
Expand All @@ -33,7 +31,6 @@ export {
AdminSections,
AuditorSections,
CrmSections,
CrmConfigurationSections,
SupervisorSections,
WebitelApplications,
};
1 change: 1 addition & 0 deletions src/locale/en/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ export default {
name: 'CRM',
sections: {
[CrmSections.CONTACTS]: 'Contacts',
[CrmSections.SLA]: 'SLA',
},
},
[WebitelApplications.HISTORY]: { name: 'Call History' },
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 @@ -219,6 +219,7 @@ export default {
name: 'CRM',
sections: {
[CrmSections.CONTACTS]: 'Контакты',
[CrmSections.SLA]: 'SLA',
},
},
[WebitelApplications.HISTORY]: { name: 'Call History' },
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 @@ -219,6 +219,7 @@ export default {
name: 'CRM',
sections: {
[CrmSections.CONTACTS]: 'Контакти',
[CrmSections.SLA]: 'SLA',
},
},
[WebitelApplications.HISTORY]: { name: 'Call History' },
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 @@ -194,6 +194,10 @@ const applicationsAccess = (value = true) => ({
_enabled: value,
_locale: `WebitelApplications.${WebitelApplications.CRM}.sections.${CrmSections.CONTACTS}`,
},
[CrmSections.SLA]: {
_enabled: value,
_locale: `WebitelApplications.${WebitelApplications.CRM}.sections.${CrmSections.SLA}`,
},
},
});

Expand Down

0 comments on commit eadbabf

Please sign in to comment.