最近搜索
没有最近搜索
Hide Component Based on Role
已于 2024年4月02日 发布
Hello! I am looking to hide recent_activity on the homepage based on the user role. I do not want end-users to see this section, but leave it in place for Agents and Admins. Any ideas on how to accomplish this?
1
1
1 条评论
Pulkit Pandey
Hi Alek
Please go through the following steps to hide the recent_activity on the homepage for end users and available for the Agents and Admins.
1. Go to the home_page.hbs file and search for the following “{{recent_activity}}” and then add the “hide” class on its wrapper.
2. Then go to the script.js file and add the below code at the bottom
3. Add the below CSS at the bottom of your style.css file
Let me know if it solves your issue
Thank You
Pulkit
Team Diziana
0