Skip to content

Commit

Permalink
disabled actions doc for BRAND_BASE_INFO['DOCS']=false
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Aug 7, 2024
1 parent 6665108 commit fe260ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ export class CdsPanelActionsComponent implements OnInit {


openInfo(e, element) {
if(!BRAND_BASE_INFO['DOCS']){
return;
}
/**if element doesn't have any doc, close info */
if(!element.doc || element.doc===""){
this.closeInfo();
Expand All @@ -143,6 +146,9 @@ export class CdsPanelActionsComponent implements OnInit {
}

closeInfo() {
if(!BRAND_BASE_INFO['DOCS']){
return;
}
setTimeout(() => {this.isOpen = false;},0)
this.hoveredElement = null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/chatbot-design-studio/utils-resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const BRAND_BASE_INFO: { [key: string] : string | boolean } ={
CONTACT_US_EMAIL: "[email protected]",
FAVICON: "https://tiledesk.com/wp-content/uploads/2022/07/tiledesk_v13-300x300.png",
META_TITLE:"Design Studio",
DOCS: true,
DOCS: false,
COMMUNITY_SECTION: true,
LOGOUT_ENABLED: false
}
Expand Down

0 comments on commit fe260ea

Please sign in to comment.