[ADF-2562] Download a previous version (#3141)

* [ADF-2562] Download a previous version

* [ADF-2562] add input property to enable/disable version downloads

* [ADF-2562] add example in demo-shell

* [ADF-2562] unit tests

* [ADF-2561] View comments on previous versions (#3137)

* [ADF-2561] View comments on previous versions

add input property to enable/disable viewing version comments

* [ADF-2561] add more tests

* remove name property

* test fixes
This commit is contained in:
Suzana Dirla
2018-04-05 23:24:05 +03:00
committed by Denys Vuika
parent 9792f83c9b
commit 7b7e39d989
13 changed files with 95 additions and 19 deletions

View File

@@ -353,7 +353,8 @@
<ng-container *ngIf="userHasPermissionToManageVersions(); else no_permission_to_versions">
<adf-version-manager
[node]="documentList.selection[0].entry"
[showComments]="showVersionComments">
[showComments]="showVersionComments"
[enableDownload]="enableVersionDownload">
</adf-version-manager>
</ng-container>
</ng-container>
@@ -440,8 +441,11 @@
</section>
<section>
<mat-slide-toggle [color]="'primary'" [(ngModel)]="showVersionComments">{{'DOCUMENT_LIST.SHOW_VERSION_COMMENTS' |
translate}}
<mat-slide-toggle [color]="'primary'" [(ngModel)]="showVersionComments">
{{'DOCUMENT_LIST.SHOW_VERSION_COMMENTS' | translate}}
</mat-slide-toggle>
<mat-slide-toggle [color]="'primary'" [(ngModel)]="enableVersionDownload">
{{'DOCUMENT_LIST.ENABLE_VERSION_DOWNLOAD' | translate}}
</mat-slide-toggle>
</section>