From 26ab2bd51e539536f1551221aed333977840b74f Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Tue, 13 Oct 2020 18:26:16 -0400 Subject: [PATCH] groups: properly direct mobile navigation in home --- .../views/landscape/components/ResourceSkeleton.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/interface/src/views/landscape/components/ResourceSkeleton.tsx b/pkg/interface/src/views/landscape/components/ResourceSkeleton.tsx index 83bcb958b..ae7b282af 100644 --- a/pkg/interface/src/views/landscape/components/ResourceSkeleton.tsx +++ b/pkg/interface/src/views/landscape/components/ResourceSkeleton.tsx @@ -29,10 +29,10 @@ type ResourceSkeletonProps = { }; export function ResourceSkeleton(props: ResourceSkeletonProps) { - const { association, api, children, atRoot } = props; + const { association, api, baseUrl, children, atRoot } = props; const app = association?.metadata?.module || association["app-name"]; const appPath = association["app-path"]; - const selectedGroup = association["group-path"]; + const workspace = (baseUrl === '/~landscape/home') ? '/home' : association["group-path"]; const title = props.title || association?.metadata?.title; return ( @@ -53,7 +53,7 @@ export function ResourceSkeleton(props: ResourceSkeletonProps) { my="1" display={["block", "none"]} > - {"<- Back"} + {"<- Back"} ) : ( - + Go back to channel )} - + {atRoot && ( <>