Skip to content

Commit

Permalink
removing isadmin
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammed Abdi <moabdi@Mohammeds-MBP.attlocal.net>
  • Loading branch information
Mohammed Abdi authored and Mohammed Abdi committed Sep 27, 2023
1 parent 3d7cb77 commit f3d6bde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions frontend/src/pages/MCADashboard/MCADTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const MCADTabs: React.FunctionComponent = () => {
>
<MCADashboard />
</Tab>
{isAdmin && (
{/* {isAdmin && ( */}
<Tab
key="appwrapperMetrics"
eventKey={1}
Expand All @@ -80,8 +80,7 @@ export const MCADTabs: React.FunctionComponent = () => {
{/* Place holder */}
<Resources activeTabKey={Number(activeTabKey)} />
</Tab>
)}
{isAdmin && (
{/* {isAdmin && ( */}
<Tab
key="clusterResources"
eventKey={2}
Expand All @@ -98,7 +97,6 @@ export const MCADTabs: React.FunctionComponent = () => {
{/* Place holder */}
<Metrics activeTabKey={Number(activeTabKey)} />
</Tab>
)}
{/* {isAdmin && (
<Tab
key="Server"
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/pages/MCADashboard/MCADashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const MCADashboardInner: React.FC<MCADashboardInnerProps> = React.memo(
dateFormatter={convertRangeToTime}
/> */}
</div>
{isAdmin && (
{/* {isAdmin && ( */}
<div>
<DonutMetricsCards
totalQueries={totalResourceQueries}
Expand All @@ -133,7 +133,6 @@ export const MCADashboardInner: React.FC<MCADashboardInnerProps> = React.memo(
refreshRate={refreshRate}
/> */}
</div>
)}
<StatusSummaryTable data={data ? data : emptyDataObject} />
<AppWrapperSummaryTable data={data ? data : emptyDataObject} />
</ApplicationsPage>
Expand Down

0 comments on commit f3d6bde

Please sign in to comment.