@chat21/chat21-ionic 3.0.109-rc.2 → 3.0.109
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/package.json
CHANGED
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
|
|
223
223
|
</ul>
|
|
224
224
|
|
|
225
|
-
<div matTooltipClass="custom-mat-tooltip" [matTooltip]="
|
|
225
|
+
<div matTooltipClass="custom-mat-tooltip" [matTooltip]="BRAND_BASE_INFO['COMPANY_NAME']" class="logoBrand"
|
|
226
226
|
#tooltip="matTooltip" matTooltipPosition='right' matTooltipHideDelay="100">
|
|
227
227
|
<!-- ------------------------------------------- -->
|
|
228
228
|
<!-- LOGO BRAND (click)="goToOfficialSite()" -->
|
|
@@ -60,6 +60,7 @@ export class SidebarComponent implements OnInit {
|
|
|
60
60
|
dashboard_settings_url: string;
|
|
61
61
|
tiledesk_url: string;
|
|
62
62
|
LOGOS_ITEMS = LOGOS_ITEMS;
|
|
63
|
+
BRAND_BASE_INFO = BRAND_BASE_INFO;
|
|
63
64
|
constructor(
|
|
64
65
|
public imageRepoService: ImageRepoService,
|
|
65
66
|
public appStorageService: AppStorageService,
|
|
@@ -77,7 +78,7 @@ export class SidebarComponent implements OnInit {
|
|
|
77
78
|
this.tiledesk_url = BRAND_BASE_INFO['COMPANY_SITE_URL']
|
|
78
79
|
|
|
79
80
|
this.DASHBOARD_URL = this.appConfig.getConfig().dashboardUrl + '#/project/';
|
|
80
|
-
|
|
81
|
+
console.log('[SIDEBAR] DASHBOARD_URL ', this.DASHBOARD_URL, LOGOS_ITEMS)
|
|
81
82
|
this.getStoredProjectAndUserRole()
|
|
82
83
|
this.subcribeToAuthStateChanged()
|
|
83
84
|
this.listenTocurrentProjectUserUserAvailability$()
|
|
@@ -28,11 +28,12 @@ export class BrandResources {
|
|
|
28
28
|
/** CSS */
|
|
29
29
|
document.body.style.setProperty('--base-brand-color', this.brand['BRAND_COLOR']);
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
Object.keys(LOGOS_ITEMS).forEach(key => { LOGOS_ITEMS[key].icon = this.brand[key];})
|
|
33
|
-
|
|
31
|
+
|
|
34
32
|
/** BRAND_BASE_INFO */
|
|
35
|
-
Object.keys(BRAND_BASE_INFO).forEach(key => BRAND_BASE_INFO[key] = this.brand[key])
|
|
33
|
+
Object.keys(BRAND_BASE_INFO).forEach(key => BRAND_BASE_INFO[key] = this.brand[key] )
|
|
34
|
+
|
|
35
|
+
/** LOGOS_ITEMS */
|
|
36
|
+
Object.keys(LOGOS_ITEMS).forEach(key => { LOGOS_ITEMS[key].icon = this.brand[key]; })
|
|
36
37
|
|
|
37
38
|
// /** INFO_MENU_ITEMS */
|
|
38
39
|
// let result: Array<{ key: string, label: string, icon: string, type: TYPE_URL, status: "active" | "inactive", src?: string}> = Array.from([...INFO_MENU_ITEMS, ...this.brand['INFO_MENU_ITEMS']].reduce((m, o) => m.set(o.key, o), new Map).values());
|
|
@@ -8,7 +8,7 @@ export const BRAND_BASE_INFO: { [key: string] : string} ={
|
|
|
8
8
|
META_TITLE:"Tiledesk - Open Source Live Chat"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export
|
|
11
|
+
export var LOGOS_ITEMS: { [key: string] : { label: string, icon: string }} ={
|
|
12
12
|
COMPANY_LOGO: {label: BRAND_BASE_INFO.COMPANY_NAME, icon: 'assets/logos/tiledesk_logo.svg'},
|
|
13
13
|
COMPANY_LOGO_NO_TEXT: {label: BRAND_BASE_INFO.COMPANY_NAME, icon: 'assets/logos/tiledesk_logo_no_text.svg'},
|
|
14
14
|
BASE_LOGO: {label: BRAND_BASE_INFO.BRAND_NAME, icon: 'assets/logos/tiledesk_logo.svg'},
|