Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update frontend/src/pages/OrganizationPage.jsx
Browse files
frontend/src/pages/OrganizationPage.jsx
CHANGED
|
@@ -172,18 +172,24 @@ export const OrganizationPage = () => {
|
|
| 172 |
<div className="flex flex-col md:flex-row md:items-center justify-between mb-xl gap-sm border-b border-outline-variant/60 pb-md">
|
| 173 |
<div>
|
| 174 |
<h1 className="font-extrabold text-on-surface tracking-tight text-[24px] m-0 flex items-center gap-1.5">
|
| 175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
</h1>
|
| 177 |
<p className="font-body-md text-on-surface-variant text-[13.5px] mt-1 m-0">
|
| 178 |
-
|
|
|
|
|
|
|
| 179 |
</p>
|
| 180 |
</div>
|
| 181 |
<div className="flex gap-sm flex-wrap items-center">
|
| 182 |
<button onClick={fetchData} className="flex items-center px-3.5 py-1.5 bg-surface-container border border-outline-variant text-on-surface rounded-lg hover:bg-surface-container-high transition-colors font-bold text-[12.5px] cursor-pointer shadow-2xs">
|
| 183 |
<Activity className={`w-3.5 h-3.5 mr-1.5 text-primary ${loading ? 'animate-spin' : ''}`} /> Sync Metrics
|
| 184 |
</button>
|
| 185 |
-
<button onClick={() => navigate('/support')} className="flex items-center px-3.5 py-1.5 bg-surface-container border border-outline-variant text-on-surface rounded-lg hover:bg-surface-container-high transition-colors font-bold text-[12.5px] cursor-pointer shadow-2xs">
|
| 186 |
-
<
|
| 187 |
</button>
|
| 188 |
<button onClick={() => navigate('/super-admin/logs')} className="flex items-center px-3.5 py-1.5 bg-surface-container border border-outline-variant text-on-surface rounded-lg hover:bg-surface-container-high transition-colors font-bold text-[12.5px] cursor-pointer shadow-2xs">
|
| 189 |
<ShieldAlert className="w-3.5 h-3.5 mr-1.5 text-primary" /> Logs & Threats
|
|
|
|
| 172 |
<div className="flex flex-col md:flex-row md:items-center justify-between mb-xl gap-sm border-b border-outline-variant/60 pb-md">
|
| 173 |
<div>
|
| 174 |
<h1 className="font-extrabold text-on-surface tracking-tight text-[24px] m-0 flex items-center gap-1.5">
|
| 175 |
+
{user?.role === 'support_engineer' ? (
|
| 176 |
+
<>Support Engineer <span className="text-primary">Operations</span></>
|
| 177 |
+
) : (
|
| 178 |
+
<>LarShield <span className="text-primary">Global Management</span></>
|
| 179 |
+
)}
|
| 180 |
</h1>
|
| 181 |
<p className="font-body-md text-on-surface-variant text-[13.5px] mt-1 m-0">
|
| 182 |
+
{user?.role === 'support_engineer'
|
| 183 |
+
? 'Client environment inspection, troubleshooting assistance, and system logs.'
|
| 184 |
+
: 'Centralized oversight for all client organizations, scans, and security nodes.'}
|
| 185 |
</p>
|
| 186 |
</div>
|
| 187 |
<div className="flex gap-sm flex-wrap items-center">
|
| 188 |
<button onClick={fetchData} className="flex items-center px-3.5 py-1.5 bg-surface-container border border-outline-variant text-on-surface rounded-lg hover:bg-surface-container-high transition-colors font-bold text-[12.5px] cursor-pointer shadow-2xs">
|
| 189 |
<Activity className={`w-3.5 h-3.5 mr-1.5 text-primary ${loading ? 'animate-spin' : ''}`} /> Sync Metrics
|
| 190 |
</button>
|
| 191 |
+
<button onClick={() => navigate(user?.role === 'support_engineer' ? '/support' : '/super-admin')} className="flex items-center px-3.5 py-1.5 bg-surface-container border border-outline-variant text-on-surface rounded-lg hover:bg-surface-container-high transition-colors font-bold text-[12.5px] cursor-pointer shadow-2xs">
|
| 192 |
+
<Shield className="w-3.5 h-3.5 mr-1.5 text-primary" /> Global Management
|
| 193 |
</button>
|
| 194 |
<button onClick={() => navigate('/super-admin/logs')} className="flex items-center px-3.5 py-1.5 bg-surface-container border border-outline-variant text-on-surface rounded-lg hover:bg-surface-container-high transition-colors font-bold text-[12.5px] cursor-pointer shadow-2xs">
|
| 195 |
<ShieldAlert className="w-3.5 h-3.5 mr-1.5 text-primary" /> Logs & Threats
|