- No workspace available
+
+ {i18n.translate('workspace.picker.empty.state.title', {
+ defaultMessage: 'No workspace available',
+ })}
+
}
body={
{isDashboardAdmin
- ? 'Create a workspace to get start'
- : 'Contact your administrator to create a workspace or to be added to an existing one'}
+ ? i18n.translate('workspace.picker.empty.state.description.admin', {
+ defaultMessage: 'Create a workspace to get start',
+ })
+ : i18n.translate('workspace.picker.empty.state.description.noAdmin', {
+ defaultMessage:
+ 'Contact your administrator to create a workspace or to be added to an existing one',
+ })}
}
@@ -112,6 +121,7 @@ export const WorkspacePickerContent = ({
const listItems = filterWorkspaceList.map((workspace: WorkspaceObject) => {
const useCase = getUseCase(workspace);
const useCaseURL = getUseCaseUrl(useCase, workspace, coreStart.application, coreStart.http);
+
return (
{searchQuery ? (
- queryedWorkspace && queryedWorkspace.length > 0 ? (
+ queriedWorkspace && queriedWorkspace.length > 0 ? (
<>
{filteredRecentWorkspaces.length > 0 &&
- getWorkspaceListGroup(queryedRecentWorkspace, 'recent')}
- {workspaceList.length > 0 && getWorkspaceListGroup(queryedWorkspace, 'all')}
+ getWorkspaceListGroup(queriedRecentWorkspace, 'recent')}
+ {workspaceList.length > 0 && getWorkspaceListGroup(queriedWorkspace, 'all')}
>
) : (
getEmptyStatePrompt()