Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] theme for each user #1574

Open
4 tasks done
irasdesire opened this issue May 9, 2024 · 5 comments
Open
4 tasks done

[QUESTION] theme for each user #1574

irasdesire opened this issue May 9, 2024 · 5 comments
Labels
🤷‍♂️ Question [ISSUE] Further information is requested

Comments

@irasdesire
Copy link

Question

Hello! i have a question about dashy theme;

context: i m using dashy with keycloak so i didn t have a user type, i changed somehow the isUserAdmin() function to return isAdmin based on usermane 🤐. and now the admin users have the theme i chose in the config.yml and the rest of users have the default theme.

question: can anyone tell me where i can see if each user has a theme set somewhere so i can go and change there so every user could have the theme i choose for them?

i can provide more info if needed, hope someone would help me and thank you in advance! 🥳

Category

Setup and Deployment

Please tick the boxes

@irasdesire irasdesire added the 🤷‍♂️ Question [ISSUE] Further information is requested label May 9, 2024
@Lissy93
Copy link
Owner

Lissy93 commented May 11, 2024

Hey @irasdesire
You can have a theme for each page, and a locally stored theme on each browser (so different users could have different themes that way, if they have different computers), but right now there's no option for a theme for each user.

Realistically, I don't think this will be a feature that I implement, as the complexity would be quite high, for something quite niche.

@irasdesire
Copy link
Author

hey, thank you for the answear! maybe i wasn t clear in my question, the problem is that i want only one theme for everyone and for some reason admin user see a theme, the rest of the users see other theme (the default one) and i don t know how comes this behavior.
the change i made : for the config, in SettingsContainer.vue i added a v-if based on computed isUserAdmin() . so, only if the user is admin, he can see , , , . for the admin user everything is fine, for the rest of the users it shows the default theme....also i added some console.logs and i see that the theme looks corectly set (i chose material) still the default one is shown in browser :( maybe i did something wrong i don t know, maybe you can make it clear for me

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label May 13, 2024
@CrazyWolf13
Copy link
Collaborator

So you are speaking of a config option to set a default theme globally, for all users?

@irasdesire
Copy link
Author

irasdesire commented May 13, 2024

yes, i set it using theme selector (chose material) + also in config.yml i made theme: material. and other users still se the default one

@Lissy93
Copy link
Owner

Lissy93 commented May 13, 2024

Ah, I see. Yes, if you set a theme in your config, that will be applied for everyone / all users.

When a user changes the theme through the UI, their chosen theme is remembered in their browsers local storage.
So if you're seeing a different theme, to what you set in the config, try clearing local storage (under the Config Menu --> Reset Local Settings)

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷‍♂️ Question [ISSUE] Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants