@posiwise/dashboard-module 0.0.113 → 0.0.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/dashboard.module.mjs +10 -10
- package/esm2022/lib/faq/faq.component.mjs +6 -6
- package/esm2022/lib/faq-details/faq-details.component.mjs +1 -1
- package/esm2022/lib/home/home.component.mjs +1 -1
- package/esm2022/lib/navbar/navbar.component.mjs +5 -5
- package/esm2022/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.mjs +2 -2
- package/esm2022/lib/search/search.component.mjs +2 -2
- package/esm2022/lib/sidebar/sidebar-routes.config.mjs +6 -6
- package/esm2022/lib/user-feedback/user-feedback.component.mjs +1 -1
- package/esm2022/lib/user-notifications/user-notifications.component.mjs +3 -3
- package/fesm2022/posiwise-dashboard-module.mjs +65 -65
- package/fesm2022/posiwise-dashboard-module.mjs.map +1 -1
- package/lib/faq/faq.component.d.ts +2 -2
- package/lib/home/home.component.d.ts +1 -1
- package/lib/navbar/navbar.component.d.ts +4 -4
- package/lib/search/search.component.d.ts +1 -1
- package/lib/user-feedback/user-feedback.component.d.ts +1 -1
- package/lib/user-notifications/user-notifications.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,37 +4,37 @@ import * as i0 from '@angular/core';
|
|
|
4
4
|
import { Component, Input, ViewChild, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
5
5
|
import * as i3 from '@angular/forms';
|
|
6
6
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
-
import * as i1$2 from '@ng-bootstrap/ng-bootstrap';
|
|
8
|
-
import { NgbDropdownConfig, NgbNavModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
|
|
9
|
-
import * as i4$1 from 'primeng/radiobutton';
|
|
10
|
-
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
11
|
-
import * as i3$1 from 'primeng/progressspinner';
|
|
12
|
-
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
|
13
|
-
import * as i8 from '@posiwise/directives';
|
|
14
|
-
import { DirectivesModule } from '@posiwise/directives';
|
|
15
|
-
import { Subject, forkJoin, BehaviorSubject, takeUntil as takeUntil$1, filter } from 'rxjs';
|
|
16
|
-
import { debounceTime, takeUntil, finalize } from 'rxjs/operators';
|
|
17
|
-
import groupBy from 'lodash/groupBy';
|
|
18
|
-
import sortBy from 'lodash/sortBy';
|
|
19
|
-
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
20
7
|
import * as i1 from '@posiwise/common-services';
|
|
21
8
|
import { PermissionService, SubscriptionService } from '@posiwise/common-services';
|
|
22
|
-
import
|
|
23
|
-
import
|
|
9
|
+
import { CoreTranslocoModule } from '@posiwise/core-transloco';
|
|
10
|
+
import * as i8 from '@posiwise/directives';
|
|
11
|
+
import { DirectivesModule } from '@posiwise/directives';
|
|
12
|
+
import * as i5 from '@posiwise/pipes';
|
|
13
|
+
import { PipesModule } from '@posiwise/pipes';
|
|
24
14
|
import * as i4 from '@posiwise/shared-components';
|
|
25
15
|
import { SharedComponentsModule } from '@posiwise/shared-components';
|
|
16
|
+
import { UserModuleModule } from '@posiwise/user-module';
|
|
17
|
+
import * as i3$1 from 'primeng/progressspinner';
|
|
18
|
+
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
|
19
|
+
import * as i4$1 from 'primeng/radiobutton';
|
|
20
|
+
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
21
|
+
import * as i1$2 from '@ng-bootstrap/ng-bootstrap';
|
|
22
|
+
import { NgbDropdownConfig, NgbNavModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
|
|
23
|
+
import * as i2 from '@angular/platform-browser';
|
|
24
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
25
|
+
import { HelperService } from '@posiwise/helper-service';
|
|
26
|
+
import groupBy from 'lodash/groupBy';
|
|
27
|
+
import sortBy from 'lodash/sortBy';
|
|
28
|
+
import { Subject, forkJoin, BehaviorSubject, takeUntil as takeUntil$1, filter } from 'rxjs';
|
|
29
|
+
import { debounceTime, takeUntil, finalize } from 'rxjs/operators';
|
|
26
30
|
import * as i1$1 from '@angular/router';
|
|
27
31
|
import { NavigationEnd } from '@angular/router';
|
|
28
32
|
import moment from 'moment';
|
|
29
33
|
import * as i6 from '@jsverse/transloco';
|
|
30
|
-
import * as i3$2 from '@ngrx/store';
|
|
31
34
|
import { getUser } from '@posiwise/app-store';
|
|
32
35
|
import { orderBy } from 'lodash';
|
|
36
|
+
import * as i3$2 from '@ngrx/store';
|
|
33
37
|
import * as i6$1 from 'primeng/tooltip';
|
|
34
|
-
import * as i5 from '@posiwise/pipes';
|
|
35
|
-
import { PipesModule } from '@posiwise/pipes';
|
|
36
|
-
import { UserModuleModule } from '@posiwise/user-module';
|
|
37
|
-
import { CoreTranslocoModule } from '@posiwise/core-transloco';
|
|
38
38
|
|
|
39
39
|
class CustomizerComponent {
|
|
40
40
|
ngOnInit() {
|
|
@@ -156,6 +156,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
|
|
|
156
156
|
args: [{ selector: 'pw-faq', template: "<div class=\"mt-md-4 mt-4\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <div class=\"card gradient-custom-branding white text-center p-1 p-sm-2\">\n <div class=\"card-header p-1 p-sm-2\">\n <button *ngIf=\"showSupport\"\n class=\"ms-auto d-block btn btn-sm btn-outline-primary\"\n (click)=\"navigateToSupport()\">\n Support\n </button>\n <h1>You need help?</h1>\n <p><em>Please search through our frequently asked questions first.</em></p>\n </div>\n <div class=\"card-block p-2 p-sm-2\">\n <fieldset>\n <legend></legend>\n <input type=\"text\"\n class=\"form-control bg-white\"\n placeholder=\"Search in faqs..\"\n (input)=\"filter($event.target.value)\"\n #messageInput />\n </fieldset>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <ng-container *ngIf=\"faqs\">\n <div *ngFor=\"let category of objectKeys(faqs); let idx1 = index\">\n <ng-container *ngIf=\"faqs[category]?.length\">\n <h6 class=\"text-uppercase mt-3 p-1\">{{ faqHashMap[category]?.name }}</h6>\n <div class=\"dashboard\">\n <div class=\"faq-item\"\n *ngFor=\"\n let faq of faqs[category];\n let idx = index;\n trackBy: trackByProductFaqId\n \">\n <div class=\"dashboard-header p-2\">\n <h5 class=\"accordion-title mt-2\">\n <a class=\"accordion-toggle collapsed\"\n data-bs-toggle=\"collapse\"\n (click)=\"onCollapseToggle(idx + '-' + idx1, faq?.answer)\"\n [href]=\"'#collapse' + idx + idx1\">\n {{ faq.question }}\n </a>\n </h5>\n </div>\n <div [id]=\"'collapse' + idx + idx1\"\n class=\"panel-collapse p-3 collapse in\">\n <div class=\"card-block\">\n <ng-container *ngIf=\"faq?.answer\">\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"sanitizedFaqAnswers[idx + '-' + idx1]\">\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && (totalRecords === 0 || allFaqFalse)\">\n <pw-no-data [withImage]=\"true\" message=\"This is embarrassing - we couldn't find any FAQ.\"> </pw-no-data>\n </div>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: rgb(70, 136, 236);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.card-header h1,.card-header p{color:#fff!important}.faq-item{border:1px dashed rgba(0,0,0,.1);background-color:#fafafa;border-radius:3px;margin:10px 0;transition:all .2s ease-in-out}.faq-item .dashboard-header{background:#fff}.card .accordion-toggle:before{content:\"\\f078\"}.card .accordion-toggle.collapsed{transition:all .3s ease-in-out}.card .accordion-toggle.collapsed:before{content:\"\\f054\"}.card-block p{font-size:16px}.card,h6{background:var(--sidebar_bg)!important;color:var(--sidebar_text)!important;padding:.8rem!important}.accordion-title a{color:var(--sidebar_bg)!important}.ql-container{resize:none!important;max-width:1000px;margin:0 auto}\n"] }]
|
|
157
157
|
}], ctorParameters: () => [{ type: i1.CommonService }, { type: i0.Injector }, { type: i1.ProductService }, { type: i2.DomSanitizer }] });
|
|
158
158
|
|
|
159
|
+
class FaqDetailsComponent extends AppBaseComponent {
|
|
160
|
+
constructor(commonService, injector, sanitizer) {
|
|
161
|
+
super(injector);
|
|
162
|
+
this.commonService = commonService;
|
|
163
|
+
this.sanitizer = sanitizer;
|
|
164
|
+
this.isLoading = false;
|
|
165
|
+
this.id = Number(this.route.snapshot.params['id']);
|
|
166
|
+
this.slug = PermissionService.selectedSubscription?.slug;
|
|
167
|
+
}
|
|
168
|
+
ngOnInit() {
|
|
169
|
+
this.getFaq();
|
|
170
|
+
}
|
|
171
|
+
getFaq() {
|
|
172
|
+
this.isLoading = true;
|
|
173
|
+
this.commonService
|
|
174
|
+
.getPublicFaqById(this.id)
|
|
175
|
+
.subscribe(res => {
|
|
176
|
+
let faqAnswer;
|
|
177
|
+
if (res?.answer) {
|
|
178
|
+
const parser = new DOMParser();
|
|
179
|
+
const doc = parser.parseFromString(res.answer, 'text/html');
|
|
180
|
+
// Remove all button elements
|
|
181
|
+
const buttons = doc.querySelectorAll('button');
|
|
182
|
+
buttons.forEach(button => button.remove());
|
|
183
|
+
// Return sanitized HTML
|
|
184
|
+
// NOSONAR: Trusted HTML content is handled safely here
|
|
185
|
+
faqAnswer = this.sanitizer.bypassSecurityTrustHtml(doc.body.innerHTML); // NOSONAR
|
|
186
|
+
}
|
|
187
|
+
this.faq = { ...res, answer: faqAnswer };
|
|
188
|
+
})
|
|
189
|
+
.add(() => (this.isLoading = false));
|
|
190
|
+
}
|
|
191
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FaqDetailsComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
192
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FaqDetailsComponent, selector: "pw-faq-details", usesInheritance: true, ngImport: i0, template: "<div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\" *ngIf=\"!isLoading\">\n <div class=\"content-quill-box\">\n <h2 class=\"mb-3\">{{faq?.question}}</h2>\n <ng-container>\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\">\n </pw-no-data>\n <div class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">See all FAQs</button>\n </div>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n", styles: [".ql-container{resize:none!important}\n"], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }] }); }
|
|
193
|
+
}
|
|
194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FaqDetailsComponent, decorators: [{
|
|
195
|
+
type: Component,
|
|
196
|
+
args: [{ selector: 'pw-faq-details', template: "<div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\" *ngIf=\"!isLoading\">\n <div class=\"content-quill-box\">\n <h2 class=\"mb-3\">{{faq?.question}}</h2>\n <ng-container>\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\">\n </pw-no-data>\n <div class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">See all FAQs</button>\n </div>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n", styles: [".ql-container{resize:none!important}\n"] }]
|
|
197
|
+
}], ctorParameters: () => [{ type: i1.CommonService }, { type: i0.Injector }, { type: i2.DomSanitizer }] });
|
|
198
|
+
|
|
159
199
|
class FooterComponent extends AppBaseComponent {
|
|
160
200
|
constructor(injector) {
|
|
161
201
|
super(injector);
|
|
@@ -737,46 +777,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
|
|
|
737
777
|
args: [{ selector: 'pw-user-notifications', template: "<div class=\"row mt-4 mb-0 notification-wrapper\"\n id=\"user-message\">\n <ng-container *ngFor=\"let noti of notifications\">\n <div class=\"col-12 col-sm-12 col-md-12 mb-md-1 mb-0 mt-3 mt-md-0\"\n *ngIf=\"isHomePage || noti?.can_disregard\">\n <div class=\"card pb-0\">\n <div class=\"alert border-0 card-body d-flex align-items-center justify-content-between px-3 mb-0\"\n [ngClass]=\"noti.type ? 'alert-' + noti.type : 'alert-panel'\">\n <p class=\"mb-0\"\n [innerHtml]=\"noti.message | safe: 'html'\"\n appAnchorRouter></p>\n <a class=\"icon-dismiss float-end text-white\"\n aria-label=\"Disregard Notifications\"\n *ngIf=\"noti?.can_disregard\"\n (click)=\"hideNoty(noti?.notification_id)\">\n <i class=\"ft-x\" aria-hidden=\"true\"></i>\n </a>\n </div>\n </div>\n </div>\n </ng-container>\n</div>\n", styles: [":root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: rgb(70, 136, 236);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255)}.alert-panel{background-color:#fff!important;border-color:#ddd!important;border-radius:8px;box-shadow:3px 3px 40px #d2d2d2;color:#021a11!important}.alert-info{background-color:var(--tabs_bg)!important}p{color:#fff}.notification-wrapper:empty{display:none}\n"] }]
|
|
738
778
|
}], ctorParameters: () => [{ type: i0.Injector }, { type: i1.CommonService }] });
|
|
739
779
|
|
|
740
|
-
class FaqDetailsComponent extends AppBaseComponent {
|
|
741
|
-
constructor(commonService, injector, sanitizer) {
|
|
742
|
-
super(injector);
|
|
743
|
-
this.commonService = commonService;
|
|
744
|
-
this.sanitizer = sanitizer;
|
|
745
|
-
this.isLoading = false;
|
|
746
|
-
this.id = Number(this.route.snapshot.params['id']);
|
|
747
|
-
this.slug = PermissionService.selectedSubscription?.slug;
|
|
748
|
-
}
|
|
749
|
-
ngOnInit() {
|
|
750
|
-
this.getFaq();
|
|
751
|
-
}
|
|
752
|
-
getFaq() {
|
|
753
|
-
this.isLoading = true;
|
|
754
|
-
this.commonService
|
|
755
|
-
.getPublicFaqById(this.id)
|
|
756
|
-
.subscribe(res => {
|
|
757
|
-
let faqAnswer;
|
|
758
|
-
if (res?.answer) {
|
|
759
|
-
const parser = new DOMParser();
|
|
760
|
-
const doc = parser.parseFromString(res.answer, 'text/html');
|
|
761
|
-
// Remove all button elements
|
|
762
|
-
const buttons = doc.querySelectorAll('button');
|
|
763
|
-
buttons.forEach(button => button.remove());
|
|
764
|
-
// Return sanitized HTML
|
|
765
|
-
// NOSONAR: Trusted HTML content is handled safely here
|
|
766
|
-
faqAnswer = this.sanitizer.bypassSecurityTrustHtml(doc.body.innerHTML); // NOSONAR
|
|
767
|
-
}
|
|
768
|
-
this.faq = { ...res, answer: faqAnswer };
|
|
769
|
-
})
|
|
770
|
-
.add(() => (this.isLoading = false));
|
|
771
|
-
}
|
|
772
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FaqDetailsComponent, deps: [{ token: i1.CommonService }, { token: i0.Injector }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
773
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: FaqDetailsComponent, selector: "pw-faq-details", usesInheritance: true, ngImport: i0, template: "<div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\" *ngIf=\"!isLoading\">\n <div class=\"content-quill-box\">\n <h2 class=\"mb-3\">{{faq?.question}}</h2>\n <ng-container>\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\">\n </pw-no-data>\n <div class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">See all FAQs</button>\n </div>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n", styles: [".ql-container{resize:none!important}\n"], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i3$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i4.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }] }); }
|
|
774
|
-
}
|
|
775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: FaqDetailsComponent, decorators: [{
|
|
776
|
-
type: Component,
|
|
777
|
-
args: [{ selector: 'pw-faq-details', template: "<div class=\"content-quill-wrapper overflow-hidden mt-5 p-3\" *ngIf=\"!isLoading\">\n <div class=\"content-quill-box\">\n <h2 class=\"mb-3\">{{faq?.question}}</h2>\n <ng-container>\n <div class=\"ql-container ql-snow\"\n style=\"border-width: 0;\">\n <div class=\"ql-editor\"\n [innerHTML]=\"faq?.answer\">\n </div>\n </div>\n </ng-container>\n </div>\n <pw-no-data *ngIf=\"!faq && !isLoading\"\n message=\"No Faq found\">\n </pw-no-data>\n <div class=\"text-end mt-3\">\n <button class=\"btn btn-outline-primary\"\n [routerLink]=\"['/',slug,'faq']\">See all FAQs</button>\n </div>\n</div>\n<div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n</div>\n", styles: [".ql-container{resize:none!important}\n"] }]
|
|
778
|
-
}], ctorParameters: () => [{ type: i1.CommonService }, { type: i0.Injector }, { type: i2.DomSanitizer }] });
|
|
779
|
-
|
|
780
780
|
// Core Angular modules
|
|
781
781
|
class DashboardLibModule {
|
|
782
782
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DashboardLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
@@ -895,7 +895,7 @@ const ROUTES = [
|
|
|
895
895
|
visible: true
|
|
896
896
|
},
|
|
897
897
|
{
|
|
898
|
-
permission: 'Pages.Admin.DomainConfig',
|
|
898
|
+
permission: 'Pages.Admin.DomainConfig || Pages.Role.MarketingManager',
|
|
899
899
|
path: '/admin/domain-config/list',
|
|
900
900
|
title: 'Domain Config',
|
|
901
901
|
icon: 'fa fa-fw fa-cog',
|
|
@@ -943,7 +943,7 @@ const ROUTES = [
|
|
|
943
943
|
visible: true
|
|
944
944
|
},
|
|
945
945
|
{
|
|
946
|
-
permission: 'Pages.Admin.LoginNotification',
|
|
946
|
+
permission: 'Pages.Admin.LoginNotification || Pages.Role.MarketingManager',
|
|
947
947
|
path: '/admin/login-notifications/list',
|
|
948
948
|
title: 'Notifications',
|
|
949
949
|
icon: 'fa fa-fw fa-bell',
|
|
@@ -955,7 +955,7 @@ const ROUTES = [
|
|
|
955
955
|
visible: true
|
|
956
956
|
},
|
|
957
957
|
{
|
|
958
|
-
permission: 'Pages.Admin.Newsletter',
|
|
958
|
+
permission: 'Pages.Admin.Newsletter || Pages.Role.MarketingManager',
|
|
959
959
|
path: '/admin/newsletter',
|
|
960
960
|
title: 'Newsletters',
|
|
961
961
|
icon: 'far fa-newspaper',
|
|
@@ -979,7 +979,7 @@ const ROUTES = [
|
|
|
979
979
|
visible: true
|
|
980
980
|
},
|
|
981
981
|
{
|
|
982
|
-
permission: 'Pages.Admin.FAQ',
|
|
982
|
+
permission: 'Pages.Admin.FAQ || Pages.Role.MarketingManager',
|
|
983
983
|
path: '/admin/faq/list',
|
|
984
984
|
title: 'FAQs',
|
|
985
985
|
icon: 'fa fa-question',
|
|
@@ -1215,7 +1215,7 @@ const CHAT_MENU = {
|
|
|
1215
1215
|
visible: true
|
|
1216
1216
|
};
|
|
1217
1217
|
const BLOG_MENU = {
|
|
1218
|
-
permission: 'Pages.Product.{permission_key}.{feature_key}.Blog',
|
|
1218
|
+
permission: 'Pages.Product.{permission_key}.{feature_key}.Blog || Pages.Role.MarketingManager',
|
|
1219
1219
|
path: '/posts/list',
|
|
1220
1220
|
title: 'Blog',
|
|
1221
1221
|
icon: 'far fa-blog',
|