Recent searches
No recent searches
Keep app sidebar open by default
Posted Jan 06, 2022
HI,
I would like to disable the option to close the apps sidebar, so my support agents could always see the apps (as one of the apps is extremely important for productivity). Is there any way you can make this happen?
Thanks,
Jonathan
5
5
5 comments
Dan Cooper
Hi Jonathan,
This is probably the overkill solution, but if you are doing any Zendesk app development you could include this line of code to open the app tray.
If you aren't doing any app development for Zendesk, this line of code can be incorporated alongside the sample code built in Zendesk's Build your first support app tutorial.
0
Jonathan
Thanks, Dan Cooper
Very helpful.
0
Daniel Michaels
I tried creating a background app
main.js file
import ZDClient from './services/ZDClient.js';
var client = ZAFClient.init();
client.invoke('appsTray.show');
the iframe.html
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<div id="app"></div>
<script src="https://assets.zendesk.com/apps/sdk/2.0/zaf_sdk.min.js"></script>
<script src="./src/main.js" type="module"></script>
</body>
</html>
This does not work though. When I go to the new ticket or click on an existing ticket the app sidebar is not open showing my other apps. I need this to default to open for the apps because some users don't know to click the box to open the apps and it is causing confusion.
0
Daniel Michaels
Ok so I tested incognito and looks like this code does work to default to open. However it is remembering when I close the app toolbar and will not default to open anymore when I have closed it. That is why it originally didn't work because I closed the apps to make sure it would default to open and it was not opening. Incognito does not have the cashed close setting so it then correctly works and defaults the apps to open. Is there a way to override this close app caching to make sure any time they go into a new ticket or existing ticket that it will default to open instead of using the cached close?
0
Mo Rizvi
Hey Jonathan!
Thanks for your post. Couple of suggestions I had:
Thanks!
Mo
0