Make CatalogEntity labels clickable (#3075)

- Transition workspace's to be labels

- Fix migrations to support multiple migrations for the same version

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-06-18 08:44:28 -04:00
1 parent d812e28639
commit 7f51e3addd
30 files changed
+268 -120

No files matched your search

+5 -1
View File
@@ -36,4 +36,8 @@
&.small {
font-size: $font-size-small;
}
}
&.clickable {
cursor: pointer;
}
}
+2 -1
View File
@@ -35,9 +35,10 @@ export interface BadgeProps extends React.HTMLAttributes<any>, TooltipDecoratorP
export class Badge extends React.Component<BadgeProps> {
render() {
const { className, label, small, flat, children, ...elemProps } = this.props;
const clickable = Boolean(this.props.onClick);
return <>
<span className={cssNames("Badge", { small, flat }, className)} {...elemProps}>
<span className={cssNames("Badge", { small, flat, clickable }, className)} {...elemProps}>
{label}
{children}
</span>