From e340cf16bff1f29e7fae4273d1c587327ec44237 Mon Sep 17 00:00:00 2001
From: Charles Morgan
Date: Sat, 7 Nov 2020 17:25:05 -0500
Subject: [PATCH] remove permission based view
recent changes that were made always show the primary allocation to the end users even if they don't have the read permission.
---
.../components/server/ServerDetailsBlock.tsx | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/resources/scripts/components/server/ServerDetailsBlock.tsx b/resources/scripts/components/server/ServerDetailsBlock.tsx
index bf036d8f9..321c01943 100644
--- a/resources/scripts/components/server/ServerDetailsBlock.tsx
+++ b/resources/scripts/components/server/ServerDetailsBlock.tsx
@@ -6,7 +6,6 @@ import { bytesToHuman, megabytesToHuman } from '@/helpers';
import TitledGreyBox from '@/components/elements/TitledGreyBox';
import { ServerContext } from '@/state/server';
import CopyOnClick from '@/components/elements/CopyOnClick';
-import Can from '@/components/elements/Can';
interface Stats {
memory: number;
@@ -71,14 +70,12 @@ const ServerDetailsBlock = () => {
/>
{!status ? 'Connecting...' : status}
-
-
-
-
- {primaryAllocation}
-
-
-
+
+
+
+ {primaryAllocation}
+
+
{stats.cpu.toFixed(2)}%