Hi Community,
From "UsrPortalDashboardCSS" the code is working fine. Whatever css defined its applying everywhere in list/detail/edit views of CRM and Portal (globally).
In code under "BootstrapModulesV2" I'm checking if current user is portal user than only apply CSS. same logic is working fine on other pageV2 for example "AccountPageV2" but the problem is that, CSS only applying on Account Section.
Below code is not working on "BootstrapModulesV2" console log is also not showing output.
Any help will be highly appreciable.
Below is sample code from "BootstrapModulesV2"
define("BootstrapModulesV2", ["css!UsrPortalDashboardCSS"],
function() {
return {
methods: {
init: function() {
this.callParent(arguments);
this.initializeCustomCSS();
},
initializeCustomCSS: function() {
var CurrentUser = this.Terrasoft.isCurrentUserSsp();
if(CurrentUser === true){
this.console.log("Current User is portal user");
Terrasoft.utils.dom.setAttributeToBody("CustomUIPortalUser", true);
}
else {
this.console.log("Current User is not portal user");
Terrasoft.utils.dom.setAttributeToBody("CustomUIPortalUser", false);
}
}
}
};
});