Hide side bar for non-admin only (conditional) #100
Replies: 6 comments 18 replies
-
Hi @Mariusthvdb, It is not exactly what you are describing, but you can achieve what you are searching knowing the overriding order. Knowing that non_admin_settings:
hide_sidebar: true
entity_settings:
- entity:
input_boolean.show_sidebar: 'on'
hide_sidebar: false When |
Beta Was this translation helpful? Give feedback.
-
Let me explain how the entities settings work: - entity:
input_boolean.hide_sidebar: 'on'
hide_sidebar: true The above means that when the input boolean is I have a wall tablet with a non-admin user, the sidebar is hidden there, if from my computer I enabled an input boolean with this setting: non_admin_settings:
hide_sidebar: true
entity_settings:
- entity:
input_boolean.show_sidebar: 'on'
hide_sidebar: false The sidebar is shown in the tablet.
I didn‘t have that into account, yes, that would be creating the same setting twice and that would bring issues.
It is the way that the options of the library have been implemented, and it was implemented in that way since the beginning it seems. It is a core functionality, it is not something that could be easily changed, having another way of managing the settings is alsmost creating another library with different options.
Yes, you mainly want to create different configurations for different users instead of having a central configuration that is how the library was created. The only option is to have settings in the admin machine to show things, not to hide them, these options will not do anything in the admin machine (because everything is shown there), they will only override those accounts or type of users that have settings in place to hide things. |
Beta Was this translation helpful? Give feedback.
-
separate post for clarity.
with the above, I can control the sidebar on both by toggling the Maybe it is the order of things (controls) here and its the last toggle that is actually acted upon? Not sure tbh, but for now, I can have the defaults for both (and they are opposed), and control them via the interface. I did already restart and refresh so hopefully it is not cache helping me out here ;-) I just tested it without the admin settings completely and it still works.... |
Beta Was this translation helpful? Give feedback.
-
I've recently experienced that this does cause some havoc after all. When I have the sidebar hidden in the non-admin settings, and a non admin tries to slide it in (on the iOS app), the view gets a darker impact, as if something is going to change in the view, but it doesnt. Seems an unexpected result of a hidden side bar. Shouldn't it simply not do anything? a bit like when eg Dont think this has to do with my setting, though hope you can shed some light |
Beta Was this translation helpful? Give feedback.
-
Ok so this is what Zac West says: The app sends an external bus message to the front end to show the sidebar when you swipe on the screen edge. I’m not sure what you would need to change to make that work but it is entirely in the front end Seems a Frontend thing after all? |
Beta Was this translation helpful? Give feedback.
-
Hi @Mariusthvdb, This pull request contains something in which I have been working lately and it is related in some way to this discussion. Please, read the description of the pull request but you can also check the documentation in the branch. Please, if you can test this gist and check if you can spot errors or unwanted issues it would be helpful. Regards |
Beta Was this translation helpful? Give feedback.
-
Please let me bring an issue forward, I can not figure out with my current tools.
I need to hide the side bar for non-admin. This is rather straightforward using the non-admin settings:
but, this is too permanent, in my case, I need to allow them every now and give them to access their settings page, to adjust/set a specific setting in the companion app settings....
so, I figured Id create a boolean:
to which I can add some other conditions (xxx) or the binary to be 'on'. (ofc, I could also use the boolean for the single setting toggle)
With this, I can toggle my admin boolean, allow them temporary access, and after that toggle back to 'off'
But, I can only use those I the entity_settings, and not the other main settings in Kiosk-mode...
Am I not seeing the obvious, or do I have a challenge here, I hope you can fix somehow..
Guess what I am looking for is smiting like:
or:
or maybe even:
This would allow for my generic settings:
admins get the full option of show_side_panel, non_admin users have the sidebar hidden by default, except for specific cases.
Please have a look?
thx!
Beta Was this translation helpful? Give feedback.
All reactions