diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 5e59693cb5ef..f762b40eeb18 100755 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -66,7 +66,7 @@ import { UrlService } from './services/shared/url.service'; // BOTS & FAQ import { FaqKbService } from './services/faq-kb.service'; -import { BotListComponent } from './bots/bots-list/bots-list.component'; +// import { BotListComponent } from './bots/bots-list/bots-list.component'; // // now lazy import { BotTypeSelectComponent } from './bots/bot-create/bot-type-select/bot-type-select.component'; import { BotCreateComponent } from './bots/bot-create/bot-create.component'; import { FaqEditAddComponent } from './bots/faq-edit-add/faq-edit-add.component'; @@ -257,7 +257,7 @@ import { TilebotSelectTypeComponent } from './bots/tilebot-select-type/tilebot-s import { TilebotSidebarComponent } from './bots/tilebot-sidebar/tilebot-sidebar.component'; import { TilebotComponent } from './bots/tilebot/tilebot.component'; import { RasaBotComponent } from './bots/rasa-bot/rasa-bot.component'; -import { TemplatesComponent } from './bots/templates/templates.component'; +// import { TemplatesComponent } from './bots/templates/templates.component'; // now lazy // import { EmailTicketingComponent } from './email-ticketing/email-ticketing.component'; // now lazy @@ -319,7 +319,7 @@ import { SidebarClaimsComponent } from './create-project-wizard/onboarding/sideb import { NetworkOfflineComponent } from './network-offline/network-offline.component'; import { HomePromoBannerComponent } from './home-promo-banner/home-promo-banner.component'; import { TemplateDetailComponent } from './bots/templates/template-detail/template-detail.component'; -import { BotsSidebarComponent } from './bots/bots-list/bots-sidebar/bots-sidebar.component'; +// import { BotsSidebarComponent } from './bots/bots-list/bots-sidebar/bots-sidebar.component'; // now lazy import { GetStartChatbotForkComponent } from './create-project-wizard/get-start-chatbot-fork/get-start-chatbot-fork.component'; import { InstallTemplateComponent } from './create-project-wizard/install-template/install-template.component'; // import { ChatbotDesignStudioModule } from './chatbot-design-studio/chatbot-design-studio.module'; // now lazy @@ -350,7 +350,6 @@ import { CreateProjectGsComponent } from './create-project-wizard/create-project import { OpenaiService } from './services/openai.service'; -// import { KnowledgeBasesComponent } from './knowledge-bases/knowledge-bases.component'; import { HomeKbModalComponent } from './home-components/home-kb/home-kb-modal/home-kb-modal.component'; import { HomeCreateChatbotModalComponent } from './home-components/home-create-chatbot/home-create-chatbot-modal/home-create-chatbot-modal.component'; import { HomeInviteTeammateModalComponent } from './home-components/home-create-teammate/home-invite-teammate-modal/home-invite-teammate-modal.component'; @@ -358,7 +357,7 @@ import { HomeInviteTeammateErrorModalComponent } from './home-components/home-cr import { HomeGoToChatComponent } from './home-components/home-go-to-chat/home-go-to-chat.component'; import { ChatbotModalComponent } from './bots/bots-list/chatbot-modal/chatbot-modal.component'; import { ChatbotAlertComponent } from './bots/bots-list/chatbot-alert/chatbot-alert.component'; -import { KnowledgeBasesComponent } from './knowledge-bases/knowledge-bases.component'; +// import { KnowledgeBasesComponent } from './knowledge-bases/knowledge-bases.component'; // now lazy import { CnpTemplatesComponent } from './create-new-project/cnp-templates/cnp-templates.component'; import { OnboardingWelcomeComponent } from './create-new-project/onboarding-welcome/onboarding-welcome.component'; import { HomeNewsFeedModalComponent } from './home-components/home-news-feed/home-news-feed-modal/home-news-feed-modal.component'; @@ -382,18 +381,18 @@ import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatTableModule } from '@angular/material/table'; import { MatPaginatorModule } from '@angular/material/paginator'; import { MatSortModule } from '@angular/material/sort'; -import { ModalPageUrlComponent } from './knowledge-bases/modals/modal-page-url/modal-page-url.component'; -import { ModalSiteMapComponent } from './knowledge-bases/modals/modal-site-map/modal-site-map.component'; -import { ModalTextFileComponent } from './knowledge-bases/modals/modal-text-file/modal-text-file.component'; -import { ModalGptKeyComponent } from './knowledge-bases/modals/modal-gpt-key/modal-gpt-key.component'; -import { ModalDeleteKnowledgeBaseComponent } from './knowledge-bases/modals/modal-delete-knowledge-base/modal-delete-knowledge-base.component'; -import { ModalPreviewKnowledgeBaseComponent } from './knowledge-bases/modals/modal-preview-knowledge-base/modal-preview-knowledge-base.component'; -import { ModalDetailKnowledgeBaseComponent } from './knowledge-bases/modals/modal-detail-knowledge-base/modal-detail-knowledge-base.component'; -import { KnowledgeBaseTableComponent } from './knowledge-bases/modals/knowledge-base-table/knowledge-base-table.component'; -import { ModalErrorComponent } from './knowledge-bases/modals/modal-error/modal-error.component'; +// import { ModalPageUrlComponent } from './knowledge-bases/modals/modal-page-url/modal-page-url.component'; // now lazy +// import { ModalSiteMapComponent } from './knowledge-bases/modals/modal-site-map/modal-site-map.component'; // now lazy +// import { ModalTextFileComponent } from './knowledge-bases/modals/modal-text-file/modal-text-file.component'; // now lazy +// import { ModalGptKeyComponent } from './knowledge-bases/modals/modal-gpt-key/modal-gpt-key.component'; // now lazy +// import { ModalDeleteKnowledgeBaseComponent } from './knowledge-bases/modals/modal-delete-knowledge-base/modal-delete-knowledge-base.component'; // now lazy +// import { ModalPreviewKnowledgeBaseComponent } from './knowledge-bases/modals/modal-preview-knowledge-base/modal-preview-knowledge-base.component'; // now lazy +// import { ModalDetailKnowledgeBaseComponent } from './knowledge-bases/modals/modal-detail-knowledge-base/modal-detail-knowledge-base.component'; // now lazy +// import { KnowledgeBaseTableComponent } from './knowledge-bases/modals/knowledge-base-table/knowledge-base-table.component'; // now lazy +// import { ModalErrorComponent } from './knowledge-bases/modals/modal-error/modal-error.component'; // now lazy // import { KnowledgeBasesPreviousComponent } from './knowledge-bases-previous/knowledge-bases-previous.component'; // now lazy -import { ModalUrlsKnowledgeBaseComponent } from './knowledge-bases/modals/modal-urls-knowledge-base/modal-urls-knowledge-base.component'; -import { AddContentMenuComponent } from './knowledge-bases/menu/add-content-menu/add-content-menu.component'; +// import { ModalUrlsKnowledgeBaseComponent } from './knowledge-bases/modals/modal-urls-knowledge-base/modal-urls-knowledge-base.component'; // now lazy +// import { AddContentMenuComponent } from './knowledge-bases/menu/add-content-menu/add-content-menu.component'; // now lazy import { UserModalComponent } from './users/user-modal/user-modal.component'; import { MessagesStatsModalComponent } from './components/modals/messages-stats-modal/messages-stats-modal.component'; import { WsChatbotService } from './services/websocket/ws-chatbot.service'; @@ -490,7 +489,7 @@ const appInitializerFn = (appConfig: AppConfigService, brandService: BrandServic FaqComponent, // ProjectsComponent, // now lazy // UsersComponent, // now lazy - BotListComponent, + // BotListComponent, // now lazy BotCreateComponent, FaqEditAddComponent, // DepartmentEditAddComponent, // now lazy @@ -629,9 +628,9 @@ const appInitializerFn = (appConfig: AppConfigService, brandService: BrandServic SidebarClaimsComponent, NetworkOfflineComponent, HomePromoBannerComponent, - TemplatesComponent, + // TemplatesComponent, // now lazy TemplateDetailComponent, - BotsSidebarComponent, + // BotsSidebarComponent, // now lazy GetStartChatbotForkComponent, InstallTemplateComponent, CreateChatbotComponent, @@ -656,7 +655,7 @@ const appInitializerFn = (appConfig: AppConfigService, brandService: BrandServic ContactCustomPropertiesComponent, // ContactInfoComponent, ContactInfoComponent CreateProjectGsComponent, // now lazy - KnowledgeBasesComponent, + // KnowledgeBasesComponent, // now lazy // HomeConvsGraphComponent, // now lazy // HomeWhatsappAccountComponent, // now lazy // HomeCreateChatbotComponent, // now lazy @@ -692,18 +691,18 @@ const appInitializerFn = (appConfig: AppConfigService, brandService: BrandServic // BrevoIntegrationComponent, // now lazy // GsheetsIntegrationComponent, // now lazy // IntegrationHeaderComponent, // now lazy - ModalPageUrlComponent, - ModalSiteMapComponent, - ModalTextFileComponent, - ModalGptKeyComponent, - ModalDeleteKnowledgeBaseComponent, - ModalPreviewKnowledgeBaseComponent, - ModalDetailKnowledgeBaseComponent, - KnowledgeBaseTableComponent, - ModalErrorComponent, + // ModalPageUrlComponent, // now lazy + // ModalSiteMapComponent, // now lazy + // ModalTextFileComponent, // now lazy + // ModalGptKeyComponent, // now lazy + // ModalDeleteKnowledgeBaseComponent, // now lazy + // ModalPreviewKnowledgeBaseComponent, // now lazy + // ModalDetailKnowledgeBaseComponent, // now lazy + // KnowledgeBaseTableComponent, // now lazy + // ModalErrorComponent, // now lazy // KnowledgeBasesPreviousComponent, // now lazy - ModalUrlsKnowledgeBaseComponent, - AddContentMenuComponent, + // ModalUrlsKnowledgeBaseComponent, // now lazy + // AddContentMenuComponent, // now lazy UserModalComponent, MessagesStatsModalComponent, KnowledgeBasesAlertComponent diff --git a/src/app/app.routing.ts b/src/app/app.routing.ts index 120eeb0a940a..87acb380e03a 100755 --- a/src/app/app.routing.ts +++ b/src/app/app.routing.ts @@ -35,14 +35,14 @@ import { EventsComponent } from './events/events.component'; // import { UsersComponent } from './users/users.component'; // now lazy // BOTS & FAQ -import { BotListComponent } from './bots/bots-list/bots-list.component'; +// import { BotListComponent } from './bots/bots-list/bots-list.component'; // now lazy import { BotTypeSelectComponent } from './bots/bot-create/bot-type-select/bot-type-select.component'; import { BotCreateComponent } from './bots/bot-create/bot-create.component'; import { FaqComponent } from './bots/faq/faq.component'; import { FaqEditAddComponent } from './bots/faq-edit-add/faq-edit-add.component'; import { FaqTestComponent } from './bots/faq-test/faq-test.component'; -import { TemplatesComponent } from './bots/templates/templates.component'; +// import { TemplatesComponent } from './bots/templates/templates.component'; // now lazy // import { ProjectEditAddComponent } from './project-edit-add/project-edit-add.component'; // now lazy // import { RequestsListHistoryComponent } from './requests-list-history/requests-list-history.component'; @@ -146,7 +146,7 @@ import { CommunityTemplateDtlsComponent } from './bots/templates/community-templ // import { EmailTicketingStaticComponent } from './static-pages/email-ticketing-static/email-ticketing-static.component'; // now lazy import { ActivateAppsumoProductComponent } from './create-project-wizard/activate-appsumo-product/activate-appsumo-product.component'; import { CreateProjectGsComponent } from './create-project-wizard/create-project-gs/create-project-gs.component'; -import { KnowledgeBasesComponent } from './knowledge-bases/knowledge-bases.component'; +// import { KnowledgeBasesComponent } from './knowledge-bases/knowledge-bases.component'; // now lazy import { CnpIsMobileComponent } from './create-new-project/cnp-is-mobile/cnp-is-mobile.component'; import { CnpTemplatesComponent } from './create-new-project/cnp-templates/cnp-templates.component'; import { OnboardingWelcomeComponent } from './create-new-project/onboarding-welcome/onboarding-welcome.component'; @@ -584,6 +584,12 @@ const routes: Routes = [ }, // { path: 'project/:projectid/widget/translations', component: WidgetMultilanguageComponent, canActivate: [AuthGuard] }, + // Widget Multilanguage called from widget setup + { + path: 'project/:projectid/widget/translations/:calledby', + loadChildren: () => import('app/widget_components/widget-multilanguage/widget-multilanguage.module').then(m => m.WidgetMultilanguageModule), + canActivate: [AuthGuard], + }, // Widget installation { @@ -877,11 +883,78 @@ const routes: Routes = [ }, // { path: 'project/:projectid/knowledge-bases-pre/:calledby', component: KnowledgeBasesPreviousComponent, canActivate: [AuthGuard] }, // now lazy + // KNOWLEDGE BASES (new) + { + path: 'project/:projectid/knowledge-bases', + loadChildren: () => import('app/knowledge-bases/knowledge-bases.module').then(m => m.KnowledgeBasesModule), + canActivate: [AuthGuard], + }, + // { path: 'project/:projectid/knowledge-bases', component: KnowledgeBasesComponent, canActivate: [AuthGuard] }, // now lazy + { + path: 'project/:projectid/knowledge-bases/:calledby', + loadChildren: () => import('app/knowledge-bases/knowledge-bases.module').then(m => m.KnowledgeBasesModule), + canActivate: [AuthGuard], + }, + // { path: 'project/:projectid/knowledge-bases/:calledby', component: KnowledgeBasesComponent, canActivate: [AuthGuard] }, // now lazy // when called from home + // Chatbots + { + path: 'project/:projectid/bots', + loadChildren: () => import('app/bots/bots-list/bots-list.module').then(m => m.BotsListModule), + canActivate: [AuthGuard], + }, + // { path: 'project/:projectid/bots', component: BotListComponent, canActivate: [AuthGuard] }, // now lazy + { + path: 'project/:projectid/bots/my-chatbots/all', + loadChildren: () => import('app/bots/bots-list/bots-list.module').then(m => m.BotsListModule), + canActivate: [AuthGuard], + }, + // { path: 'project/:projectid/bots/my-chatbots/all', component: BotListComponent, canActivate: [AuthGuard] }, // now lazy + { + path: 'project/:projectid/bots/my-chatbots/customer-satisfaction', + loadChildren: () => import('app/bots/bots-list/bots-list.module').then(m => m.BotsListModule), + canActivate: [AuthGuard], + }, + // { path: 'project/:projectid/bots/my-chatbots/customer-satisfaction', component: BotListComponent, canActivate: [AuthGuard] }, // now lazy + + { + path: 'project/:projectid/bots/my-chatbots/increase-sales', + loadChildren: () => import('app/bots/bots-list/bots-list.module').then(m => m.BotsListModule), + canActivate: [AuthGuard], + }, + // { path: 'project/:projectid/bots/my-chatbots/increase-sales', component: BotListComponent, canActivate: [AuthGuard] }, // now lazy + // Templates + { + path: 'project/:projectid/bots/templates/all', + loadChildren: () => import('app/bots/templates/templates.module').then(m => m.TemplatesModule), + canActivate: [AuthGuard], + }, + // { path: 'project/:projectid/bots/templates/all', component: TemplatesComponent, canActivate: [AuthGuard] }, // now lazy + + { + path: 'project/:projectid/bots/templates/customer-satisfaction', + loadChildren: () => import('app/bots/templates/templates.module').then(m => m.TemplatesModule), + canActivate: [AuthGuard], + }, + // { path: 'project/:projectid/bots/templates/customer-satisfaction', component: TemplatesComponent, canActivate: [AuthGuard] }, // now lazy + + { + path: 'project/:projectid/bots/templates/increase-sales', + loadChildren: () => import('app/bots/templates/templates.module').then(m => m.TemplatesModule), + canActivate: [AuthGuard], + }, + // { path: 'project/:projectid/bots/templates/increase-sales', component: TemplatesComponent, canActivate: [AuthGuard] }, // now lazy + + { + path: 'project/:projectid/bots/templates/community', + loadChildren: () => import('app/bots/templates/templates.module').then(m => m.TemplatesModule), + canActivate: [AuthGuard], + }, + // { path: 'project/:projectid/bots/templates/community', component: TemplatesComponent, canActivate: [AuthGuard] }, // now lazy @@ -986,20 +1059,14 @@ const routes: Routes = [ // FAQKB (i.e. BOT) /* path /faqkb commented and duplicated RENAMED IN /bots */ // { path: 'project/:projectid/faqkb', component: FaqKbComponent, canActivate: [AuthGuard] }, - { path: 'project/:projectid/bots', component: BotListComponent, canActivate: [AuthGuard] }, - { path: 'project/:projectid/bots/my-chatbots/all', component: BotListComponent, canActivate: [AuthGuard] }, - { path: 'project/:projectid/bots/my-chatbots/customer-satisfaction', component: BotListComponent, canActivate: [AuthGuard] }, - { path: 'project/:projectid/bots/my-chatbots/increase-sales', component: BotListComponent, canActivate: [AuthGuard] }, + { path: 'project/:projectid/bots/bot-select-type', component: BotTypeSelectComponent, canActivate: [AuthGuard] }, // { path: 'project/:projectid/bots/createfaqkb', component: BotCreateComponent, canActivate: [AuthGuard] }, // replaced by the bottom path { path: 'project/:projectid/bots/create/:type', component: BotCreateComponent, canActivate: [AuthGuard] }, { path: 'project/:projectid/chatbot/create', component: CreateChatbotComponent, canActivate: [AuthGuard] }, //Multilanguage bot from scratch - { path: 'project/:projectid/bots/templates/all', component: TemplatesComponent, canActivate: [AuthGuard] }, - { path: 'project/:projectid/bots/templates/customer-satisfaction', component: TemplatesComponent, canActivate: [AuthGuard] }, - { path: 'project/:projectid/bots/templates/increase-sales', component: TemplatesComponent, canActivate: [AuthGuard] }, - { path: 'project/:projectid/bots/templates/community', component: TemplatesComponent, canActivate: [AuthGuard] }, + // rasa bot @@ -1101,9 +1168,7 @@ const routes: Routes = [ - // KNOWLEDGE BASES - { path: 'project/:projectid/knowledge-bases', component: KnowledgeBasesComponent, canActivate: [AuthGuard] }, - { path: 'project/:projectid/knowledge-bases/:calledby', component: KnowledgeBasesComponent, canActivate: [AuthGuard] }, // when called from home + diff --git a/src/app/automations/automations.component.html b/src/app/automations/automations.component.html index 3e3e6cccbf4d..576303f1cf62 100644 --- a/src/app/automations/automations.component.html +++ b/src/app/automations/automations.component.html @@ -9,6 +9,12 @@
+ +
+ {{ 'AutomationsLog' | translate }} +
+
diff --git a/src/app/bots/bots-list/bots-list.module.ts b/src/app/bots/bots-list/bots-list.module.ts new file mode 100644 index 000000000000..cad30acd9493 --- /dev/null +++ b/src/app/bots/bots-list/bots-list.module.ts @@ -0,0 +1,37 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { BotListComponent } from './bots-list.component'; +import { RouterModule, Routes } from '@angular/router'; +import { BotsSidebarModule } from './bots-sidebar/bots-sidebar.module'; +import { SharedModule } from 'app/shared/shared.module'; +import { TranslateModule } from '@ngx-translate/core'; +import { MatIconModule } from '@angular/material/icon'; +import { MomentModule } from 'ngx-moment'; +import { MatButtonModule } from '@angular/material/button'; +import { FormsModule } from '@angular/forms'; +import { MatMenuModule } from '@angular/material/menu'; +import { MatTooltipModule } from '@angular/material/tooltip'; + +const routes: Routes = [ + { path: "", component: BotListComponent}, +]; + +@NgModule({ + declarations: [ + BotListComponent + ], + imports: [ + RouterModule.forChild(routes), + CommonModule, + BotsSidebarModule, + SharedModule, + TranslateModule, + MatIconModule, + MomentModule, + MatButtonModule, + MatMenuModule, + FormsModule, + MatTooltipModule + ] +}) +export class BotsListModule { } diff --git a/src/app/bots/bots-list/bots-sidebar/bots-sidebar.module.ts b/src/app/bots/bots-list/bots-sidebar/bots-sidebar.module.ts new file mode 100644 index 000000000000..6984f694ebb2 --- /dev/null +++ b/src/app/bots/bots-list/bots-sidebar/bots-sidebar.module.ts @@ -0,0 +1,23 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { BotsSidebarComponent } from './bots-sidebar.component'; +import { FormsModule } from '@angular/forms'; +import { TranslateModule } from '@ngx-translate/core'; +import { MatTooltipModule } from '@angular/material/tooltip'; + + + +@NgModule({ + declarations: [ + BotsSidebarComponent + ], + imports: [ + CommonModule, + FormsModule, + TranslateModule, + MatTooltipModule, + ], exports: [ + BotsSidebarComponent, + ] +}) +export class BotsSidebarModule { } diff --git a/src/app/bots/templates/templates.module.ts b/src/app/bots/templates/templates.module.ts new file mode 100644 index 000000000000..1d65fbd21752 --- /dev/null +++ b/src/app/bots/templates/templates.module.ts @@ -0,0 +1,31 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { TemplatesComponent } from './templates.component'; +import { SharedModule } from 'app/shared/shared.module'; +import { TranslateModule } from '@ngx-translate/core'; +import { BotsSidebarModule } from '../bots-list/bots-sidebar/bots-sidebar.module'; +import { FormsModule } from '@angular/forms'; +import { RouterModule, Routes } from '@angular/router'; +import { MomentModule } from 'ngx-moment'; +import { MatTooltipModule } from '@angular/material/tooltip'; + +const routes: Routes = [ + { path: "", component: TemplatesComponent}, +]; + +@NgModule({ + declarations: [ + TemplatesComponent + ], + imports: [ + RouterModule.forChild(routes), + CommonModule, + SharedModule, + TranslateModule, + BotsSidebarModule, + FormsModule, + MomentModule, + MatTooltipModule + ] +}) +export class TemplatesModule { } diff --git a/src/app/canned-responses/canned-responses-list.component.html b/src/app/canned-responses/canned-responses-list.component.html index efcddd4275e6..cb8acd3def1b 100755 --- a/src/app/canned-responses/canned-responses-list.component.html +++ b/src/app/canned-responses/canned-responses-list.component.html @@ -11,6 +11,13 @@ -->
+ +
+ {{'CannedResponses.CannedResponses' | translate}} +
+ +
diff --git a/src/app/components/settings-sidebar/settings-sidebar.component.html b/src/app/components/settings-sidebar/settings-sidebar.component.html index 045bbec454b9..0aa87af930ce 100755 --- a/src/app/components/settings-sidebar/settings-sidebar.component.html +++ b/src/app/components/settings-sidebar/settings-sidebar.component.html @@ -42,12 +42,12 @@
  • - + code

    {{'Installation' | translate}} @@ -56,11 +56,31 @@

  • + + + + +
  • + + language +

    + {{'Translations' | translate}} +

    +
    +
  • + + -
  • - + -
  • - {{'userEmail' | translate}} + {{'EmailTicketing' | translate}}

  • @@ -215,7 +235,7 @@ hdr_auto

    - {{ 'Automations Log' | translate }} + {{ 'AutomationsLog' | translate }}

    diff --git a/src/app/components/settings-sidebar/settings-sidebar.component.ts b/src/app/components/settings-sidebar/settings-sidebar.component.ts index 61d27c7072f6..749fe207a454 100755 --- a/src/app/components/settings-sidebar/settings-sidebar.component.ts +++ b/src/app/components/settings-sidebar/settings-sidebar.component.ts @@ -41,9 +41,13 @@ export class SettingsSidebarComponent implements OnInit { EMAIL_TICKETING_ROUTE_IS_ACTIVE: boolean; CANNED_RESPONSES_ROUTE_IS_ACTIVE: boolean; DEPTS_ROUTE_IS_ACTIVE: boolean; + EDIT_DEPT_ROUTE_IS_ACTIVE: boolean; + ADD_DEPT_ROUTE_IS_ACTIVE: boolean; TRIGGER_ROUTE_IS_ACTIVE: boolean; TEAMMATES_ROUTE_IS_ACTIVE: boolean; GROUPS_ROUTE_IS_ACTIVE: boolean; + EDIT_GROUP_ROUTE_IS_ACTIVE: boolean; + ADD_GROUP_ROUTE_IS_ACTIVE: boolean; WIDGET_SETUP_ROUTE_IS_ACTIVE: boolean; WIDGET_INSTALLATION_ROUTE_IS_ACTIVE: boolean; CHATBOT_ROUTE_IS_ACTIVE: boolean; @@ -52,6 +56,7 @@ export class SettingsSidebarComponent implements OnInit { KNOWLEDGE_BASES_ROUTE_IS_ACTIVE: boolean; AUTOMATIONS_ROUTE_IS_ACTIVE: boolean; INTEGRATIONS_ROUTE_IS_ACTIVE: boolean; + TRANSLATIONS_ROUTE_IS_ACTIVE: boolean; public_Key: string; USER_ROLE: any; CHAT_BASE_URL: string; @@ -60,9 +65,13 @@ export class SettingsSidebarComponent implements OnInit { sidebar_settings_height: any; IS_OPEN: boolean = true; routing_and_depts_lbl: string; + // widgetAPITestPage: string; + translations: string; teammatates_and_groups_lbl: string; USER_HAS_TOGGLE_SIDEBAR: boolean; ARE_NEW_KB: boolean; + TEST_WIDGET_API_BASE_URL: string; + TESTSITE_BASE_URL: string; private unsubscribe$: Subject = new Subject(); constructor( public appConfigService: AppConfigService, @@ -84,6 +93,8 @@ export class SettingsSidebarComponent implements OnInit { // this.getMainContentHeight(); this.listenSidebarIsOpened(); this.listenToKbVersion() + + this.translateString() } listenToKbVersion() { @@ -162,7 +173,7 @@ export class SettingsSidebarComponent implements OnInit { // @ Not used  getMainContentHeight() { const elemMainContent = document.querySelector('.main-content') - const elemAppdashboardSettingsSidebar = ( document.querySelector('appdashboard-settings-sidebar')) + const elemAppdashboardSettingsSidebar = (document.querySelector('appdashboard-settings-sidebar')) this.logger.log('[SETTINGS-SIDEBAR] elemMainContent ', elemMainContent) this.logger.log('[SETTINGS-SIDEBAR] elemAppdashboardSettingsSidebar ', elemAppdashboardSettingsSidebar) setTimeout(() => { @@ -333,7 +344,7 @@ export class SettingsSidebarComponent implements OnInit { if (!this.public_Key.includes('ETK')) { this.isVisibleETK = false } - + if (!this.public_Key.includes('KNB')) { this.isVisibleKNB = false } @@ -359,6 +370,14 @@ export class SettingsSidebarComponent implements OnInit { this.routing_and_depts_lbl = text; }); } + translateString() { + this.translate.get('Translations') + .subscribe((text: string) => { + this.translations = text; + }); + } + + getTeammatesTraslantion() { this.translate.get('Teammates') @@ -453,9 +472,13 @@ export class SettingsSidebarComponent implements OnInit { goToProjectSettings() { // routerLink="project/{{ project._id }}/project-settings/general" - this.router.navigate([ - 'project/' + this.project._id + '/project-settings/general', - ]) + this.router.navigate(['project/' + this.project._id + '/project-settings/general']) + } + + + + goToMultilanguage() { + this.router.navigate(['project/' + this.project._id + '/widget/translations']) } getCurrentRoute() { @@ -475,10 +498,7 @@ export class SettingsSidebarComponent implements OnInit { ) } else { this.TAG_ROUTE_IS_ACTIVE = false - this.logger.log( - '[SETTING-SIDEBAR] - TAG_ROUTE_IS_ACTIVE ', - this.TAG_ROUTE_IS_ACTIVE, - ) + this.logger.log('[SETTING-SIDEBAR] - TAG_ROUTE_IS_ACTIVE ', this.TAG_ROUTE_IS_ACTIVE) } @@ -507,142 +527,144 @@ export class SettingsSidebarComponent implements OnInit { if (this.route.indexOf('/departments') !== -1) { this.DEPTS_ROUTE_IS_ACTIVE = true - this.logger.log( - '[SETTING-SIDEBAR] - DEPTS_ROUTE_IS_ACTIVE ', - this.DEPTS_ROUTE_IS_ACTIVE, - ) + this.logger.log('[SETTING-SIDEBAR] - DEPTS_ROUTE_IS_ACTIVE ', this.DEPTS_ROUTE_IS_ACTIVE) } else { this.DEPTS_ROUTE_IS_ACTIVE = false - this.logger.log( - '[SETTING-SIDEBAR] - DEPTS_ROUTE_IS_ACTIVE ', - this.DEPTS_ROUTE_IS_ACTIVE, - ) + this.logger.log('[SETTING-SIDEBAR] - DEPTS_ROUTE_IS_ACTIVE ', this.DEPTS_ROUTE_IS_ACTIVE) + } + + if (this.route.indexOf('/department/edit') !== -1) { + this.EDIT_DEPT_ROUTE_IS_ACTIVE = true + this.logger.log('[SETTING-SIDEBAR] - EDIT_DEPT_ROUTE_IS_ACTIVE ', this.EDIT_DEPT_ROUTE_IS_ACTIVE) + } else { + this.EDIT_DEPT_ROUTE_IS_ACTIVE = false + this.logger.log('[SETTING-SIDEBAR] - EDIT_DEPT_ROUTE_IS_ACTIVE ', this.EDIT_DEPT_ROUTE_IS_ACTIVE) + } + + if (this.route.indexOf('/department/create') !== -1) { + this.ADD_DEPT_ROUTE_IS_ACTIVE = true + this.logger.log('[SETTING-SIDEBAR] - ADD_DEPT_ROUTE_IS_ACTIVE ', this.ADD_DEPT_ROUTE_IS_ACTIVE) + } else { + this.ADD_DEPT_ROUTE_IS_ACTIVE = false + this.logger.log('[SETTING-SIDEBAR] - ADD_DEPT_ROUTE_IS_ACTIVE ', this.ADD_DEPT_ROUTE_IS_ACTIVE) } if (this.route.indexOf('/trigger') !== -1) { this.TRIGGER_ROUTE_IS_ACTIVE = true - this.logger.log( - '[SETTING-SIDEBAR] - TRIGGER_ROUTE_IS_ACTIVE ', - this.TRIGGER_ROUTE_IS_ACTIVE, - ) + this.logger.log( '[SETTING-SIDEBAR] - TRIGGER_ROUTE_IS_ACTIVE ', this.TRIGGER_ROUTE_IS_ACTIVE) } else { this.TRIGGER_ROUTE_IS_ACTIVE = false - this.logger.log( - '[SETTING-SIDEBAR] - TRIGGER_ROUTE_IS_ACTIVE ', - this.TRIGGER_ROUTE_IS_ACTIVE, - ) + this.logger.log( '[SETTING-SIDEBAR] - TRIGGER_ROUTE_IS_ACTIVE ', this.TRIGGER_ROUTE_IS_ACTIVE) } if (this.route.indexOf('/users') !== -1) { this.TEAMMATES_ROUTE_IS_ACTIVE = true - this.logger.log( - '[SETTING-SIDEBAR] - TEAMMATES_ROUTE_IS_ACTIVE ', - this.TEAMMATES_ROUTE_IS_ACTIVE, - ) + this.logger.log( '[SETTING-SIDEBAR] - TEAMMATES_ROUTE_IS_ACTIVE ', this.TEAMMATES_ROUTE_IS_ACTIVE) } else { this.TEAMMATES_ROUTE_IS_ACTIVE = false - this.logger.log( - '[SETTING-SIDEBAR] - TEAMMATES_ROUTE_IS_ACTIVE ', - this.TEAMMATES_ROUTE_IS_ACTIVE, - ) + this.logger.log( '[SETTING-SIDEBAR] - TEAMMATES_ROUTE_IS_ACTIVE ', this.TEAMMATES_ROUTE_IS_ACTIVE) } if (this.route.indexOf('/groups') !== -1) { this.GROUPS_ROUTE_IS_ACTIVE = true - this.logger.log( - '[SETTING-SIDEBAR] - GROUPS_ROUTE_IS_ACTIVE ', - this.GROUPS_ROUTE_IS_ACTIVE, - ) + this.logger.log( '[SETTING-SIDEBAR] - GROUPS_ROUTE_IS_ACTIVE ',this.GROUPS_ROUTE_IS_ACTIVE) } else { this.GROUPS_ROUTE_IS_ACTIVE = false - this.logger.log( - '[SETTING-SIDEBAR] - GROUPS_ROUTE_IS_ACTIVE ', - this.GROUPS_ROUTE_IS_ACTIVE, - ) + this.logger.log('[SETTING-SIDEBAR] - GROUPS_ROUTE_IS_ACTIVE ',this.GROUPS_ROUTE_IS_ACTIVE) + } + + if (this.route.indexOf('/group/edit') !== -1) { + this.EDIT_GROUP_ROUTE_IS_ACTIVE = true + this.logger.log( '[SETTING-SIDEBAR] - EDIT_GROUP_ROUTE_IS_ACTIVE ', this.EDIT_GROUP_ROUTE_IS_ACTIVE ) + } else { + this.EDIT_GROUP_ROUTE_IS_ACTIVE = false + this.logger.log( '[SETTING-SIDEBAR] - EDIT_GROUP_ROUTE_IS_ACTIVE ', this.EDIT_GROUP_ROUTE_IS_ACTIVE ) } + if (this.route.indexOf('/group/create') !== -1) { + this.ADD_GROUP_ROUTE_IS_ACTIVE = true + this.logger.log( '[SETTING-SIDEBAR] - ADD_GROUP_ROUTE_IS_ACTIVE ', this.ADD_GROUP_ROUTE_IS_ACTIVE ) + } else { + this.ADD_GROUP_ROUTE_IS_ACTIVE = false + this.logger.log( '[SETTING-SIDEBAR] - ADD_GROUP_ROUTE_IS_ACTIVE ', this.ADD_GROUP_ROUTE_IS_ACTIVE ) + } + + + if (this.route.indexOf('/widget-set-up') !== -1) { this.WIDGET_SETUP_ROUTE_IS_ACTIVE = true - this.logger.log( '[SETTING-SIDEBAR] - WIDGET_SETUP_ROUTE_IS_ACTIVE ', this.WIDGET_SETUP_ROUTE_IS_ACTIVE, - ) + this.logger.log('[SETTING-SIDEBAR] - WIDGET_SETUP_ROUTE_IS_ACTIVE ', this.WIDGET_SETUP_ROUTE_IS_ACTIVE) } else { this.WIDGET_SETUP_ROUTE_IS_ACTIVE = false - this.logger.log( '[SETTING-SIDEBAR] - WIDGET_SETUP_ROUTE_IS_ACTIVE ', this.WIDGET_SETUP_ROUTE_IS_ACTIVE, - ) + this.logger.log('[SETTING-SIDEBAR] - WIDGET_SETUP_ROUTE_IS_ACTIVE ', this.WIDGET_SETUP_ROUTE_IS_ACTIVE) } if (this.route.indexOf('/installation') !== -1) { this.WIDGET_INSTALLATION_ROUTE_IS_ACTIVE = true - this.logger.log('[SETTING-SIDEBAR] - WIDGET_INSTALLATION_ROUTE_IS_ACTIVE ', this.WIDGET_INSTALLATION_ROUTE_IS_ACTIVE, + this.logger.log('[SETTING-SIDEBAR] - WIDGET_INSTALLATION_ROUTE_IS_ACTIVE ', this.WIDGET_INSTALLATION_ROUTE_IS_ACTIVE, ) } else { this.WIDGET_INSTALLATION_ROUTE_IS_ACTIVE = false - this.logger.log('[SETTING-SIDEBAR] - WIDGET_INSTALLATION_ROUTE_IS_ACTIVE ', this.WIDGET_INSTALLATION_ROUTE_IS_ACTIVE, + this.logger.log('[SETTING-SIDEBAR] - WIDGET_INSTALLATION_ROUTE_IS_ACTIVE ', this.WIDGET_INSTALLATION_ROUTE_IS_ACTIVE, ) } - + if (this.route.indexOf('/bots') !== -1) { this.CHATBOT_ROUTE_IS_ACTIVE = true - this.logger.log( - '[SETTING-SIDEBAR] - CHATBOT_ROUTE_IS_ACTIVE ', - this.CHATBOT_ROUTE_IS_ACTIVE, - ) + this.logger.log('[SETTING-SIDEBAR] - CHATBOT_ROUTE_IS_ACTIVE ',this.CHATBOT_ROUTE_IS_ACTIVE ) } else { this.CHATBOT_ROUTE_IS_ACTIVE = false - this.logger.log( - '[SETTING-SIDEBAR] - CHATBOT_ROUTE_IS_ACTIVE ', - this.CHATBOT_ROUTE_IS_ACTIVE, - ) + this.logger.log( '[SETTING-SIDEBAR] - CHATBOT_ROUTE_IS_ACTIVE ', this.CHATBOT_ROUTE_IS_ACTIVE) } if (this.route.indexOf('/hours') !== -1) { this.OPERATING_HOURS_ROUTE_IS_ACTIVE = true - this.logger.log('[SETTING-SIDEBAR] - OPERATING_HOURS_ROUTE_IS_ACTIVE ',this.OPERATING_HOURS_ROUTE_IS_ACTIVE) + this.logger.log('[SETTING-SIDEBAR] - OPERATING_HOURS_ROUTE_IS_ACTIVE ', this.OPERATING_HOURS_ROUTE_IS_ACTIVE) } else { this.OPERATING_HOURS_ROUTE_IS_ACTIVE = false - this.logger.log('[SETTING-SIDEBAR] - OPERATING_HOURS_ROUTE_IS_ACTIVE ',this.OPERATING_HOURS_ROUTE_IS_ACTIVE) + this.logger.log('[SETTING-SIDEBAR] - OPERATING_HOURS_ROUTE_IS_ACTIVE ', this.OPERATING_HOURS_ROUTE_IS_ACTIVE) } if (this.route.indexOf('/knowledge-bases') !== -1) { this.KNOWLEDGE_BASES_ROUTE_IS_ACTIVE = true - this.logger.log('[SETTING-SIDEBAR] - KNOWLEDGE_BASES_ROUTE_IS_ACTIVE ',this.KNOWLEDGE_BASES_ROUTE_IS_ACTIVE) + this.logger.log('[SETTING-SIDEBAR] - KNOWLEDGE_BASES_ROUTE_IS_ACTIVE ', this.KNOWLEDGE_BASES_ROUTE_IS_ACTIVE) } else { this.KNOWLEDGE_BASES_ROUTE_IS_ACTIVE = false - this.logger.log('[SETTING-SIDEBAR] - KNOWLEDGE_BASES_ROUTE_IS_ACTIVE ',this.KNOWLEDGE_BASES_ROUTE_IS_ACTIVE) + this.logger.log('[SETTING-SIDEBAR] - KNOWLEDGE_BASES_ROUTE_IS_ACTIVE ', this.KNOWLEDGE_BASES_ROUTE_IS_ACTIVE) } if (this.route.indexOf('/automations') !== -1) { this.AUTOMATIONS_ROUTE_IS_ACTIVE = true - this.logger.log('[SETTING-SIDEBAR] - AUTOMATIONS_ROUTE_IS_ACTIVE ',this.AUTOMATIONS_ROUTE_IS_ACTIVE) + this.logger.log('[SETTING-SIDEBAR] - AUTOMATIONS_ROUTE_IS_ACTIVE ', this.AUTOMATIONS_ROUTE_IS_ACTIVE) } else { this.AUTOMATIONS_ROUTE_IS_ACTIVE = false - this.logger.log('[SETTING-SIDEBAR] - AUTOMATIONS_ROUTE_IS_ACTIVE ',this.AUTOMATIONS_ROUTE_IS_ACTIVE) + this.logger.log('[SETTING-SIDEBAR] - AUTOMATIONS_ROUTE_IS_ACTIVE ', this.AUTOMATIONS_ROUTE_IS_ACTIVE) } if (this.route.indexOf('/project-settings/') !== -1) { this.PROJECT_SETTINGS_ROUTE_IS_ACTIVE = true - this.logger.log( - '[SETTING-SIDEBAR] - PROJECT_SETTINGS_ROUTE_IS_ACTIVE ', - this.PROJECT_SETTINGS_ROUTE_IS_ACTIVE, - ) + this.logger.log('[SETTING-SIDEBAR] - PROJECT_SETTINGS_ROUTE_IS_ACTIVE ', this.PROJECT_SETTINGS_ROUTE_IS_ACTIVE ) } else { this.PROJECT_SETTINGS_ROUTE_IS_ACTIVE = false - this.logger.log( - '[SETTING-SIDEBAR] - PROJECT_SETTINGS_ROUTE_IS_ACTIVE ', - this.PROJECT_SETTINGS_ROUTE_IS_ACTIVE, - ) + this.logger.log( '[SETTING-SIDEBAR] - PROJECT_SETTINGS_ROUTE_IS_ACTIVE ', this.PROJECT_SETTINGS_ROUTE_IS_ACTIVE ) } if (this.route.indexOf('/integrations') !== -1) { this.INTEGRATIONS_ROUTE_IS_ACTIVE = true - this.logger.log('[SETTING-SIDEBAR] - INTEGRATIONS_ROUTE_IS_ACTIVE ', this.INTEGRATIONS_ROUTE_IS_ACTIVE, - ) + this.logger.log('[SETTING-SIDEBAR] - INTEGRATIONS_ROUTE_IS_ACTIVE ', this.INTEGRATIONS_ROUTE_IS_ACTIVE) } else { this.INTEGRATIONS_ROUTE_IS_ACTIVE = false - this.logger.log( '[SETTING-SIDEBAR] - INTEGRATIONS_ROUTE_IS_ACTIVE ', this.INTEGRATIONS_ROUTE_IS_ACTIVE, - ) + this.logger.log('[SETTING-SIDEBAR] - INTEGRATIONS_ROUTE_IS_ACTIVE ', this.INTEGRATIONS_ROUTE_IS_ACTIVE) + } + + if (this.route.indexOf('/widget/translations') !== -1) { + this.TRANSLATIONS_ROUTE_IS_ACTIVE = true + this.logger.log('[SETTING-SIDEBAR] - TRANSLATIONS_ROUTE_IS_ACTIVE ', this.TRANSLATIONS_ROUTE_IS_ACTIVE) + } else { + this.TRANSLATIONS_ROUTE_IS_ACTIVE = false + this.logger.log('[SETTING-SIDEBAR] - TRANSLATIONS_ROUTE_IS_ACTIVE ', this.TRANSLATIONS_ROUTE_IS_ACTIVE) } diff --git a/src/app/department-edit-add/department-edit-add.component.html b/src/app/department-edit-add/department-edit-add.component.html index ad407f610832..5a089e9085c8 100755 --- a/src/app/department-edit-add/department-edit-add.component.html +++ b/src/app/department-edit-add/department-edit-add.component.html @@ -1,18 +1,13 @@ - - + + + + + settings + {{ 'Settings' | translate }} +
    -
    - -
    -
    -
    - -
    - - - - - -
    -
    - -
    - -
    -
    - - -
    - -
    - -
    -
    -
    - - - - -
    -
    -
    -

    - - - {{ "RoutingPage.SettingUpTileDeskRoutingRules_2" | translate }} -

    -
    -
    + +
    + + keyboard_arrow_left + + + {{ "DeptsAddEditPage.AddDept" | translate}} + + + + {{ "DeptsAddEditPage.EditDept" | translate}} + + +
    -
    -
    -
    - info - - - {{ "RoutingPage.TheFollowingRules" | translate }} -
    -
    -
    -
    +
    +
    + +
    -
    -
    - -
    -
    -

    - - {{ "DeptsAddEditPage.ActivateBOT" | translate }} - -

    -
    -
    +
    +
    +
    + +
    - -
    - - -
    -
    -
    -
    -
    -
    - -
    -
    -
    + + + + - - {{ "DeptsAddEditPage.SelectABotThatWill" | translate }} - +
    +
    + +
    +
    -
    -
    - - -
    - - - - - - {{ "DeptsAddEditPage.SelectAnExistingOne" | translate }} - - - - {{ "DeptsAddEditPage.orCreateABot" | translate }} - - - - + + + +
    + +
    + +
    -
    + - -
    -
    -

    - + + + + +
    +
    +
    +

    - {{ "RoutingPage.RoutingRules" | translate }} - -

    + + {{ "RoutingPage.SettingUpTileDeskRoutingRules_2" | translate }} +

    +
    -
    -
    +
    +
    +
    + info + + + {{ "RoutingPage.TheFollowingRules" | translate }} +
    +
    -
    + - - - - -
    -
    -
    -
    - - {{ "DeptsAddEditPage.SetRoutingRules" | translate }} - +
    +
    - -
    - - Assigned: - - - {{ "QuickTipsAssigned" | translate }} + + + +
    +
    +

    + + {{ "DeptsAddEditPage.ActivateBOT" | translate }} +

    +
    + +
    + + +
    + +
    -
    - - Pooled: - - - {{ "QuickTipsPooled_1" | translate }} - {{ "QuickTipsPooled_2" | translate }} +
    + +
    +
    +
    +
    + + + + + +
    +
    +
    + + + {{ "DeptsAddEditPage.SelectABotThatWill" | translate }}
    -
    - - - - -
    - -
    -
    -
    +
    -
    -
    + +
    +
    +
    - -
    -
    -
    - -
    -
    - - - - - - - -
    -
    + + + +
    +
    + + + + + + + +
    +
    + + + + + +
    +
    - -
    -
    - - - - - - - - + + +
    +
    +
    -
    -
    -
    - - - -
    -
    -
    - + + + + + +
    +
    +
    + -
    -
    -

    - - {{ "QuickTips" | translate }} - -

    -
    -
    -
    -
    -
    - -

    - Assigned -

    -

    - {{ "QuickTipsAssigned" | translate }} -

    -

    - Pooled -

    -

    - {{ "QuickTipsPooled_1" | translate }} - {{ "QuickTipsPooled_2" | translate }} -

    -

    - Bot -

    -

    - {{ "QuickTipsBot" | translate }} -

    - -
    +
    +
    +

    + + {{ "QuickTips" | translate }} + +

    +
    +
    +
    +
    +
    -
    -
    - +

    + Assigned +

    +

    + {{ "QuickTipsAssigned" | translate }} +

    +

    + Pooled +

    +

    + {{ "QuickTipsPooled_1" | translate }} + {{ "QuickTipsPooled_2" | translate }} +

    +

    + Bot +

    +

    + {{ "QuickTipsBot" | translate }} +

    +
    +
    +
    + - - - -
    -
    - -
    -
    -
    -

    - - {{ "RequestMsgsPage.Details" | translate }} - -

    -
    -
    -
    -
    -
    + + + +
    +
    -
    -
    + +
    -
    - - - - - - DD - - +
    +
    +

    + + {{ "RequestMsgsPage.Details" | translate }} + +

    +
    +
    +
    +
    +
    - - {{ deptName_toUpdate}} - - -
    +
    +
    -
    - - - {{ dept_name_initial }} - - +
    + + + + + + DD + + - - {{ deptName_toUpdate}} - -
    + + {{ deptName_toUpdate}} + + +
    -
    +
    + + + {{ dept_name_initial }} + + -
    + + {{ deptName_toUpdate}} + + +
    - - - -
    - -
    - -

    - - calendar_today - - {{ "Created" | translate }} - - - - - {{ dept_created_at | amTimeAgo }} +

    - ({{ dept_created_at | date: 'd/M/y HH:mm:ss' }}) - - -

    -
    -
    + + + +
    + +
    + +

    + + calendar_today + + {{ "Created" | translate }} + + + + + {{ dept_created_at | amTimeAgo }} - - - -

    + ({{ dept_created_at | date: 'd/M/y HH:mm:ss' }}) + + -
    +

    +
    +
    -

    - - code - - {{ 'DeptsAddEditPage.DeptId' | translate }} - - - - - {{ dept_ID }} - -

    + + + +
    -
    -
    +
    - -
    -
    - -

    - - {{ 'DeptsAddEditPage.DeptBot' | translate }} - -

    +

    + + code + + {{ 'DeptsAddEditPage.DeptId' | translate }} + + + + + {{ dept_ID }} + +

    -
    -
    -
    - -
    - - {{ "BotsPage.NoBot" | translate }} -
    +
    -
    -
    - - - - - - - - - - - - - - - - + + + +
    +
    - - +

    + + {{ 'DeptsAddEditPage.DeptBot' | translate }} +

    + +
    +
    +
    + +
    + + {{ "BotsPage.NoBot" | translate }} + +
    - - - +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + {{ selectedValue }} + +
    - - {{ selectedValue }} -
    -
    -
    - -
    - -
    - - -
    - -
    - -
    -

    - - {{ 'DeptsAddEditPage.DeptAgents' | translate }} - + + + +

    + +
    +

    + + {{ 'DeptsAddEditPage.DeptAgents' | translate }} + - - {{ 'DeptsAddEditPage.AllUsers' | translate }} - + {{ 'DeptsAddEditPage.AllUsers' | translate }} + - - {{ 'DepartmentsPage.Group' | translate }} - - {{ group_name }} + {{ 'DepartmentsPage.Group' | translate }} + + {{ group_name }} - - ({{'Edit' | translate}}) + + ({{'Edit' | translate}}) - + - {{ - 'GroupsPage.tooltipEditGroup' | translate }} - {{ group_name }} - + {{ + 'GroupsPage.tooltipEditGroup' | translate }} + {{ group_name }} + - - - - - -

    - - - - -
    - -
    -
    - - - - - - - - - - - - - - {{agent?.id_user?.firstname}} {{agent?.id_user?.lastname}} + + + +

    + + + + +
    + +
    +
    + + + + + + + + + + + + + + {{agent?.id_user?.firstname}} {{agent?.id_user?.lastname}} + + +
    +
    -
    -
    - - - -
    + + + +
    -
    +
    -
    -

    - - info - {{ 'ThisGroupHasNoMembers' | translate }} -

    -
    +
    +

    + + info + {{ 'ThisGroupHasNoMembers' | translate }} +

    +
    -
    - - - - - - - - - - - - - - {{agent?.firstname}} {{agent?.lastname}} - - +
    + + + + + + + + + + + + + + {{agent?.firstname}} {{agent?.lastname}} + + +
    +
    +
    +
    -
    +
    -
    - +
    -
    - +
    diff --git a/src/app/department-edit-add/department-edit-add.component.scss b/src/app/department-edit-add/department-edit-add.component.scss index cc019749bcc1..88e8045b7c56 100755 --- a/src/app/department-edit-add/department-edit-add.component.scss +++ b/src/app/department-edit-add/department-edit-add.component.scss @@ -655,3 +655,6 @@ select[disabled] { margin-right: 3px; object-fit: cover; } + + + diff --git a/src/app/department-edit-add/department-edit-add.component.ts b/src/app/department-edit-add/department-edit-add.component.ts index 45c569f22e7c..f93301b8bf7a 100755 --- a/src/app/department-edit-add/department-edit-add.component.ts +++ b/src/app/department-edit-add/department-edit-add.component.ts @@ -141,6 +141,7 @@ export class DepartmentEditAddComponent extends PricingBaseComponent implements agentCannotManageAdvancedOptions: string; learnMoreAboutDefaultRoles: string; onlyOwnerCanManageTheAccountPlanMsg: string; + IS_OPEN_SETTINGS_SIDEBAR: boolean; constructor( private router: Router, @@ -242,6 +243,7 @@ export class DepartmentEditAddComponent extends PricingBaseComponent implements ngOnInit() { this.auth.checkRoleForCurrentProject(); this.getProfileImageStorage(); + this.listenSidebarIsOpened(); this.logger.log('[DEPT-EDIT-ADD] selectedDeptId FROM @INPUT: ', this.ws_requestslist_deptIdSelected) @@ -321,9 +323,17 @@ export class DepartmentEditAddComponent extends PricingBaseComponent implements this.getOSCODE(); } + + listenSidebarIsOpened() { + this.auth.settingSidebarIsOpned.subscribe((isopened) => { + this.logger.log('[DEPT-EDIT-ADD] SETTNGS-SIDEBAR isopened (FROM SUBSCRIPTION) ', isopened) + this.IS_OPEN_SETTINGS_SIDEBAR = isopened + }); + } + getOSCODE() { this.public_Key = this.appConfigService.getConfig().t2y12PruGU9wUtEGzBJfolMIgK - this.logger.log('[USERS] getAppConfig - public_Key', this.public_Key) + this.logger.log('[DEPT-EDIT-ADD] getAppConfig - public_Key', this.public_Key) let keys = this.public_Key.split('-') keys.forEach((key) => { diff --git a/src/app/departments/departments.component.html b/src/app/departments/departments.component.html index 5632d8fae6ee..be8115082496 100755 --- a/src/app/departments/departments.component.html +++ b/src/app/departments/departments.component.html @@ -21,6 +21,14 @@
    + +
    + + {{'RoutingAndDepts' | translate}} + +
    +
    diff --git a/src/app/email-ticketing/email-ticketing.component.html b/src/app/email-ticketing/email-ticketing.component.html index 864bfad0b4cf..34417e414cd3 100755 --- a/src/app/email-ticketing/email-ticketing.component.html +++ b/src/app/email-ticketing/email-ticketing.component.html @@ -11,17 +11,22 @@
    +
    + {{'EmailTicketing' | translate}} +
    +
    -
    +