Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ux: change colors for inflight workspace actions
  • Loading branch information
oxy committed Jun 2, 2022
commit 57e6659d19f757d2325c9cc85da19c5060d21984
5 changes: 3 additions & 2 deletions site/src/util/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const DisplayStatusLanguage = {
queued: "Queued",
}

// Localize workspace status and provide corresponding color from theme
export const getDisplayStatus = (
theme: Theme,
build: WorkspaceBuild,
Expand All @@ -85,12 +86,12 @@ export const getDisplayStatus = (
}
case "starting":
return {
color: theme.palette.success.main,
color: theme.palette.primary.main,
status: `⦿ ${DisplayStatusLanguage.starting}`,
}
case "stopping":
return {
color: theme.palette.text.secondary,
color: theme.palette.primary.main,
status: `◍ ${DisplayStatusLanguage.stopping}`,
}
case "stopped":
Expand Down