Skip to content

ux: change colors for inflight workspace actions #1986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2022
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