diff --git a/src/renderer/components/+landing-page/landing-page.tsx b/src/renderer/components/+landing-page/landing-page.tsx index a6925a1f0b..6b50572646 100644 --- a/src/renderer/components/+landing-page/landing-page.tsx +++ b/src/renderer/components/+landing-page/landing-page.tsx @@ -5,7 +5,10 @@ import { observer } from "mobx-react"; import { clusterStore } from "../../../common/cluster-store"; import { Workspace, workspaceStore } from "../../../common/workspace-store"; import { PageLayout } from "../layout/page-layout" +import { Select, SelectOption } from "../select"; import { WorkspaceOverview } from "./workspace-overview" +import { autobind } from "../../../common/utils"; + @observer export class LandingPage extends React.Component { @observable showHint = true; @@ -13,15 +16,37 @@ export class LandingPage extends React.Component { currentWorkspace = autorun(() => { this.workspace = workspaceStore.currentWorkspace; }) + @autobind() + getHeader() { + const onWorkspaceChange = (option: SelectOption) => { + const selectedWorkspace = workspaceStore.getByName(option.value); + + if (!selectedWorkspace) { + return; + } + + workspaceStore.setActive(selectedWorkspace.id); + } + + return ( +
+ This is the default workspace. Workspaces are used to organize clusters into logical groups. +
++ A single workspaces contains a list of clusters and their full configuration. +
++ {workspace.description} +
+