From c0ed4169fdb40ae41aaa0714e2376a141b87ed31 Mon Sep 17 00:00:00 2001 From: Logan Allen Date: Wed, 10 Feb 2021 16:24:24 -0600 Subject: [PATCH] interface: redirect to base url when unsubscribing, removing, or archiving --- .../views/landscape/components/ChannelPopoverRoutes/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/interface/src/views/landscape/components/ChannelPopoverRoutes/index.tsx b/pkg/interface/src/views/landscape/components/ChannelPopoverRoutes/index.tsx index 2056e110b7..bb0046c3f9 100644 --- a/pkg/interface/src/views/landscape/components/ChannelPopoverRoutes/index.tsx +++ b/pkg/interface/src/views/landscape/components/ChannelPopoverRoutes/index.tsx @@ -43,13 +43,16 @@ export function ChannelPopoverRoutes(props: ChannelPopoverRoutesProps) { const handleUnsubscribe = async () => { const [,,ship,name] = association.resource.split('/'); await api.graph.leaveGraph(ship, name); + history.push(props.baseUrl); }; const handleRemove = async () => { await api.metadata.remove('graph', association.resource, association.group); + history.push(props.baseUrl); }; const handleArchive = async () => { const [,,,name] = association.resource.split('/'); await api.graph.deleteGraph(name); + history.push(props.baseUrl); }; const canAdmin = isChannelAdmin(group, association.resource);