Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion site/src/pages/WorkspacePage/Workspace.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ export const Deprecated: Story = {
template: {
...Mocks.MockTemplate,
deprecated: true,
deprecation_message: "Template deprecated due to reasons",
deprecation_message:
"Template deprecated due to reasons. [Learn more](#)",
},
},
};
Expand Down
11 changes: 9 additions & 2 deletions site/src/pages/WorkspacePage/Workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { SidebarIconButton } from "components/FullPageLayout/Sidebar";
import HubOutlined from "@mui/icons-material/HubOutlined";
import { ResourcesSidebar } from "./ResourcesSidebar";
import { ResourceCard } from "components/Resources/ResourceCard";
import { MemoizedInlineMarkdown } from "components/Markdown/Markdown";

export type WorkspaceError =
| "getBuildsError"
Expand Down Expand Up @@ -360,8 +361,14 @@ export const Workspace: FC<WorkspaceProps> = ({

{template?.deprecated && (
<Alert severity="warning">
<AlertTitle>Workspace using deprecated template</AlertTitle>
<AlertDetail>{template?.deprecation_message}</AlertDetail>
<AlertTitle>
This workspace uses a deprecated template
</AlertTitle>
<AlertDetail>
<MemoizedInlineMarkdown>
{template?.deprecation_message}
</MemoizedInlineMarkdown>
</AlertDetail>
</Alert>
)}

Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy