forked from jappel/leistungsbilanz-ts
Expose project version history
This commit is contained in:
parent
384a5769ab
commit
d00ae30bda
13 changed files with 759 additions and 10 deletions
|
|
@ -40,6 +40,7 @@ import {
|
|||
projectDeviceSyncFields,
|
||||
type ProjectDeviceSyncField,
|
||||
} from "../../../shared/constants/project-device-sync-fields";
|
||||
import { ProjectVersionHistory } from "../../../frontend/components/project-version-history";
|
||||
|
||||
const projectDeviceSyncFieldLabels: Record<ProjectDeviceSyncField, string> = {
|
||||
name: "Technischer Name",
|
||||
|
|
@ -608,6 +609,16 @@ export default function ProjectDetailPage() {
|
|||
</div>
|
||||
</section>
|
||||
|
||||
{project ? (
|
||||
<section className="col-12">
|
||||
<ProjectVersionHistory
|
||||
currentRevision={project.currentRevision}
|
||||
onRestoreComplete={() => window.location.reload()}
|
||||
projectId={projectId}
|
||||
/>
|
||||
</section>
|
||||
) : null}
|
||||
|
||||
<section className="col-12 col-lg-4">
|
||||
<div className="card shadow-sm">
|
||||
<div className="card-header">Neue Verteilung</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue