Keep app sidebar open by default

4 Comentarios

  • Dan Cooper
    Community Moderator

    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. 

    client.invoke('appsTray.show')

    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
  • Dan 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
  • Dan 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

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk