Skip to content

Commit

Permalink
Updates document store to use revisionControl property
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Dec 13, 2023
1 parent 6077dff commit 3d0ef7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/dialog/RevisionsDialogContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
</script>

<RevisionsDialog {documentId} {revisions} {enabled} />
4 changes: 4 additions & 0 deletions src/structure/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3d0ef7a

Please sign in to comment.