diff --git a/src/common/dialog/RevisionsDialogContainer.svelte b/src/common/dialog/RevisionsDialogContainer.svelte index dafd6ea2f..7ae5a6356 100644 --- a/src/common/dialog/RevisionsDialogContainer.svelte +++ b/src/common/dialog/RevisionsDialogContainer.svelte @@ -5,7 +5,7 @@ const document = $viewer.document; const documentId = document?.id; const revisions = document?.revisions; - const enabled = document?.revision_control; + const enabled = document?.revisionControl; diff --git a/src/structure/document.js b/src/structure/document.js index 4612553a4..2845c27a6 100644 --- a/src/structure/document.js +++ b/src/structure/document.js @@ -369,6 +369,10 @@ export class Document extends Svue { return organizationName; }, + revisionControl(doc) { + return Boolean(doc.revision_control); + }, + // Revision Properties revisions(doc) { if (!doc.revision_control) return null;