Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Nov 7, 2023
1 parent 80bf5f4 commit b5cabce
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
15 changes: 15 additions & 0 deletions src/app/utils/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,18 @@ export enum PLAN_NAME {
}

export const URL_understanding_default_roles = 'https://gethelp.tiledesk.com/articles/understanding-default-roles/' // 'https://docs.tiledesk.com/knowledge-base/understanding-default-roles/'

export function getWidgetWebInstallationScript(projectID: string, widgetBaseUrl: string): string {
return ` window.tiledeskSettings = {
projecid:: ${projectID}
};
(function(d, s, id) {
var w=window; var d=document; var i=function(){i.c(arguments);};
i.q=[]; i.c=function(args){i.q.push(args);}; w.Tiledesk=i;
var js, fjs=d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js=d.createElement(s);
js.id=id; js.async=true; js.src="${widgetBaseUrl}launch.js";
fjs.parentNode.insertBefore(js, fjs);
}(document,'script','tiledesk-jssdk'));`
}
1 change: 1 addition & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@
"UserProfile": {
"Profile": "Profile",
"UploadImage": "Upload image",
"Avatar":"Avatar",
"Name": "Name",
"Lastname": "Lastname",
"UserId": "User Id",
Expand Down
16 changes: 7 additions & 9 deletions src/assets/sass/cds/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ svg {
}
}

//notification close icon
button.close{
background-color: transparent;
border-color: transparent;
}

.modal-content .modal-footer button + button{
margin-bottom: unset;
}
Expand Down Expand Up @@ -328,15 +334,6 @@ cds-connector.connector-false {
}


::ng-deep .cds-mat-tooltip {
background-color: #2d323e !important;
font-size: 12px !important;
border-radius: 6px !important;
font-family: "Poppins", "Roboto", "Arial", sans-serif !important;
padding-top: 8px !important;
padding-bottom: 8px !important;
}

::ng-deep .mat-expansion-indicator::after {
color: white;
}
Expand Down Expand Up @@ -369,6 +366,7 @@ color: white;
text-transform: capitalize;
font-size: 14px;
padding: 6px 12px;
margin: 0;
border-radius: $btn-border-radius;
&:hover {
opacity: 0.8;
Expand Down

0 comments on commit b5cabce

Please sign in to comment.