mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* added new component to compare current and new file version of a node. * update doc * added more tests * updated docs * small fixes * changed with typography * Update version-comparison.component.md * handle hiding the comparison component on demo shell if cancelled/uploaded a new file version * small fixes Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
44 lines
1.8 KiB
HTML
44 lines
1.8 KiB
HTML
<header mat-dialog-title>{{'VERSION.DIALOG.TITLE' | translate}}</header>
|
|
|
|
<section>
|
|
<mat-slide-toggle id="adf-version-manager-switch-readonly" color="primary" [(ngModel)]="readOnly">
|
|
{{'APP.ADF_VERSION_MANAGER.READ_ONLY' | translate}}
|
|
</mat-slide-toggle>
|
|
</section>
|
|
|
|
<section>
|
|
<mat-slide-toggle id="adf-version-manager-switch-download" color="primary" [(ngModel)]="allowDownload">
|
|
{{'APP.ADF_VERSION_MANAGER.ALLOW_DOWNLOAD' | translate}}
|
|
</mat-slide-toggle>
|
|
</section>
|
|
|
|
<section>
|
|
<mat-slide-toggle id="adf-version-manager-switch-comments" color="primary" [(ngModel)]="showComments">
|
|
{{'APP.ADF_VERSION_MANAGER.COMMENTS' | translate}}
|
|
</mat-slide-toggle>
|
|
</section>
|
|
|
|
<section *ngIf="newFileVersion">
|
|
<mat-slide-toggle id="adf-version-manager-switch-comparison" color="primary" [(ngModel)]="showVersionComparison">
|
|
{{'APP.ADF_VERSION_MANAGER.VERSION_COMPARISON' | translate}}
|
|
</mat-slide-toggle>
|
|
</section>
|
|
|
|
<section mat-dialog-content *ngIf="!readOnly">
|
|
<adf-version-manager [node]="contentEntry"
|
|
(uploadCancel)="hideVersionComparison($event)"
|
|
(uploadSuccess)="hideVersionComparison($event)"
|
|
[showVersionComparison]="showVersionComparison"
|
|
[newFileVersion]="newFileVersion"
|
|
[allowDownload]="allowDownload"
|
|
[showComments]="showComments"
|
|
(uploadError)="uploadError($event)"></adf-version-manager>
|
|
</section>
|
|
<section mat-dialog-content *ngIf="readOnly">
|
|
<adf-version-list [node]="contentEntry" [showActions]="false"></adf-version-list>
|
|
</section>
|
|
|
|
<footer mat-dialog-actions fxLayout="row" fxLayoutAlign="end center">
|
|
<button mat-button (click)="close()">{{'VERSION.DIALOG.CLOSE' | translate}}</button>
|
|
</footer>
|