Skip to content
Snippets Groups Projects
Commit 354d77a3 authored by Davor's avatar Davor
Browse files

Grey out app section if chosen dashboard role is admin

parent f4df9749
No related branches found
No related tags found
1 merge request!45Feat/protect users endpoint
Pipeline #21480 failed with stages
in 2 minutes and 44 seconds
......@@ -213,8 +213,8 @@ export const UserModal = ({ open, onClose, userId, setUserId }: UserModalProps)
)}
<div>
<div className="flow-root mt-6">
<ul className="-my-5 divide-y divide-gray-200 ">
<div className={`flow-root mt-6 ${dashboardRole === UserRole.Admin ? 'opacity-70' : ''}`}>
<ul className="-my-5 divide-y divide-gray-200">
{fields.map((item, index) => {
if (item.name === 'dashboard') {
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment