Add automatic project snapshots
This commit is contained in:
@@ -24,6 +24,7 @@ import {
|
||||
import {
|
||||
getProjectRevisionDescription,
|
||||
getProjectRevisionSourceLabel,
|
||||
getProjectSnapshotKindLabel,
|
||||
mergeProjectRevisionPages,
|
||||
} from "../utils/project-version-history";
|
||||
|
||||
@@ -352,6 +353,15 @@ export function ProjectVersionHistory({
|
||||
<tr key={snapshot.id}>
|
||||
<td>
|
||||
<strong>{snapshot.name}</strong>
|
||||
<span
|
||||
className={`badge ms-2 ${
|
||||
snapshot.kind === "automatic"
|
||||
? "text-bg-info"
|
||||
: "text-bg-secondary"
|
||||
}`}
|
||||
>
|
||||
{getProjectSnapshotKindLabel(snapshot.kind)}
|
||||
</span>
|
||||
{snapshot.description ? (
|
||||
<div className="small text-secondary">
|
||||
{snapshot.description}
|
||||
|
||||
Reference in New Issue
Block a user