diff --git a/x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx b/x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx index 64f5765938584..3103e1ad46f9e 100644 --- a/x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx +++ b/x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx @@ -6,9 +6,12 @@ */ import { + EuiBadge, type EuiBasicTableColumn, EuiButton, EuiCallOut, + EuiFlexGroup, + EuiFlexItem, EuiInMemoryTable, EuiLink, EuiLoadingSpinner, @@ -278,12 +281,25 @@ export class SpacesGridPage extends Component { }), sortable: true, render: (value: string, rowRecord) => ( - - {value} - + + + + {value} + + + {this.state.activeSpace?.name === rowRecord.name && ( + + + {i18n.translate('xpack.spaces.management.spacesGridPage.currentSpaceMarkerText', { + defaultMessage: 'current', + })} + + + )} + ), }, { diff --git a/x-pack/plugins/spaces/public/management/view_space/view_space.tsx b/x-pack/plugins/spaces/public/management/view_space/view_space.tsx index 6cf2cbe4d4d8a..1578cf6c19b82 100644 --- a/x-pack/plugins/spaces/public/management/view_space/view_space.tsx +++ b/x-pack/plugins/spaces/public/management/view_space/view_space.tsx @@ -201,32 +201,6 @@ export const ViewSpacePage: FC = (props) => { ) : null; }; - const SwitchButton = () => { - if (userActiveSpace?.id === space.id) { - return null; - } - - const { serverBasePath } = props; - - // use href to force full page reload (needed in order to change spaces) - return ( - - - - ); - }; - return ( = (props) => { getUrlForApp={getUrlForApp} > - + @@ -280,13 +254,28 @@ export const ViewSpacePage: FC = (props) => { - + - - - + {userActiveSpace?.id !== space.id ? ( + + + + + + ) : null}