From f9f8233d6fd5e0f3c265f93278c2d54193ffbe48 Mon Sep 17 00:00:00 2001 From: Security-Chief-Odo <87156706+Security-Chief-Odo@users.noreply.github.com> Date: Tue, 12 Sep 2023 15:56:22 -0500 Subject: [PATCH] Changed blocked instances to not be linked from instance page (#2121) Co-authored-by: Beehaw Dev Co-authored-by: SleeplessOne1917 --- src/shared/components/home/instances.tsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/shared/components/home/instances.tsx b/src/shared/components/home/instances.tsx index e27c40bb..afdcddb4 100644 --- a/src/shared/components/home/instances.tsx +++ b/src/shared/components/home/instances.tsx @@ -102,7 +102,9 @@ export class Instances extends Component { active: isSelected, })} > - {this.itemList(instances[status])} + {status === "blocked" + ? this.itemList(instances[status], false) + : this.itemList(instances[status])} ), }))} @@ -128,7 +130,7 @@ export class Instances extends Component { ); } - itemList(items: Instance[]) { + itemList(items: Instance[], link = true) { return items.length > 0 ? (
@@ -143,9 +145,13 @@ export class Instances extends Component { {items.map(i => (
- - {i.domain} - + {link ? ( + + {i.domain}{" "} + + ) : ( + {i.domain} + )} {i.software} {i.version}