mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
ux: change colors for inflight workspace actions (#1986)
This commit is contained in:
@@ -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,
|
||||
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user