I tried to hide communication panel but unable to revert back changes
Hi Team,
https://academy.creatio.com/docs/node/1433
I used the above article to get access to communication panel schema and made changes to
diff: /**SCHEMA_DIFF*/[
{
"operation": "insert",
"name": "communicationPanelAll",
"propertyName": "items",
"values": {
"id": "communicationPanelAll",
"selectors": {"wrapEl": "#communicationPanelAll"},
"itemType": Terrasoft.ViewItemType.CONTAINER,
"wrapClass": ["all"],
"items": [],
"tips": [],
"markerValue": {"bindTo": "CommunicationPanelMarkerValue"}
}
},
used "operation": "remove" instead of "operation": "insert",
Was able to hide the communication panel but when tried to revert back changes unable to do so
Some please suggest a way to revert back changes or hide this communication panel in an easy way so reverting changes is easy
Thank You
Like
Dear Braj,
If removing the code does not restore the panel try to clear your profile data by going into the profile and choosing the "Restore default settings" option.
Best regards,
Angela
Angela Reyes,
Thank You for this info but as i tried it on my local instance and my client asked us to hide the communication panel so please suggest any work around to do and an easy way to restore it
Braj Raj singh Kushwaha,
It is now not clear what your task is. The panel must be hidden forever or on specific conditions?
Angela Reyes,
The panel should be hidden forever.
In case we need it again then we should be able to make it visible as it was before.
And by using the above article I was able to hide it but when I tried to make it visible it was still hidden
Braj Raj singh Kushwaha,
Can you send here the code you used to make it visible?
Angela Reyes,
diff: /**SCHEMA_DIFF*/[
{
"operation": "remove",
"name": "communicationPanelAll",
"propertyName": "items",
"values": {
"id": "communicationPanelAll",
"selectors": {"wrapEl": "#communicationPanelAll"},
"itemType": Terrasoft.ViewItemType.CONTAINER,
"wrapClass": ["all"],
"items": [],
"tips": [],
"markerValue": {"bindTo": "CommunicationPanelMarkerValue"}
}
},
Above code to hide
This code to unhide it or make it visible
diff: /**SCHEMA_DIFF*/[
{
"operation": "insert",
"name": "communicationPanelAll",
"propertyName": "items",
"values": {
"id": "communicationPanelAll",
"selectors": {"wrapEl": "#communicationPanelAll"},
"itemType": Terrasoft.ViewItemType.CONTAINER,
"wrapClass": ["all"],
"items": [],
"tips": [],
"markerValue": {"bindTo": "CommunicationPanelMarkerValue"}
}
},
Just made changes to this part only
Braj Raj singh Kushwaha,
There is an easier way to hide the CTI panel. Please create a replacing view model for "Communication panel schema":
with the medhod like this one:
init: function() { return false; }
As a result once the changes are saved and the page is refreshed the communication panel won't be initialized:
To restore the panel please remove all your customizations related to CommunicationPanel and add them according to my instruction.
Best regards,
Oscar
Oscar Dylan,
Hi Oscar,
As I tried your approach it is working fine thank you very much
But to restore the panel I removed all customization and refreshed the whole site, Restored the default setting from the user profile still panel was not restored.
Please let me know how to restore it.
Thank You