[ADF-2561] add showComments toggle on demo-shell (#3143)

This commit is contained in:
Suzana Dirla
2018-04-05 14:05:58 +03:00
committed by Denys Vuika
parent 9b3e153b83
commit c7507c0c31
5 changed files with 17 additions and 3 deletions

View File

@@ -96,6 +96,9 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
@Input()
maxSizeShow = false;
@Input()
showVersionComments = true;
@Input()
versioning = false;
@@ -358,10 +361,11 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
onManageVersions(event) {
const contentEntry = event.value.entry;
const showComments = this.showVersionComments;
if (this.contentService.hasPermission(contentEntry, 'update')) {
this.dialog.open(VersionManagerDialogAdapterComponent, {
data: { contentEntry },
data: { contentEntry, showComments },
panelClass: 'adf-version-manager-dialog',
width: '630px'
});