mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* configuration support for version manager * checkbox for version deletion demo * i18n support for version manager * deleting versions * confirmation dialog for version deletion * readme update * update schema * update code as per code review * update i18n resources for demo shell * unit tests
38 lines
1.6 KiB
HTML
38 lines
1.6 KiB
HTML
<mat-list class="adf-version-list" *ngIf="!isLoading; else loading_template">
|
|
<mat-list-item *ngFor="let version of versions">
|
|
<mat-icon mat-list-icon>insert_drive_file</mat-icon>
|
|
<h4 mat-line class="adf-version-list-item-name">{{version.entry.name}}</h4>
|
|
<p mat-line>
|
|
<span class="adf-version-list-item-version">{{version.entry.id}}</span> -
|
|
<span class="adf-version-list-item-date">{{version.entry.modifiedAt | date}}</span>
|
|
</p>
|
|
<p mat-line class="adf-version-list-item-comment" *ngIf="showComments">{{version.entry.versionComment}}</p>
|
|
|
|
<mat-menu #versionMenu="matMenu" yPosition="below" xPosition="before">
|
|
<button
|
|
mat-menu-item
|
|
(click)="restore(version.entry.id)">
|
|
{{ 'ADF_VERSION_LIST.ACTIONS.RESTORE' | translate }}
|
|
</button>
|
|
<button *ngIf="allowDownload"
|
|
mat-menu-item
|
|
(click)="downloadVersion(version.entry.id)">
|
|
{{ 'ADF_VERSION_LIST.ACTIONS.DOWNLOAD' | translate }}
|
|
</button>
|
|
<button *ngIf="allowDelete"
|
|
(click)="deleteVersion(version.entry.id)"
|
|
mat-menu-item>
|
|
{{ 'ADF_VERSION_LIST.ACTIONS.DELETE' | translate }}
|
|
</button>
|
|
</mat-menu>
|
|
|
|
<button mat-icon-button [matMenuTriggerFor]="versionMenu">
|
|
<mat-icon>more_vert</mat-icon>
|
|
</button>
|
|
</mat-list-item>
|
|
</mat-list>
|
|
|
|
<ng-template #loading_template>
|
|
<mat-progress-bar data-automation-id="version-history-loading-bar" mode="indeterminate" color="accent"></mat-progress-bar>
|
|
</ng-template>
|