mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2672] version manager fixes (#3169)
* fix app config, add extra flags for version manager * add docs and tests * update i18n strings * rename "id" to "nodeId" * automatically detect permissions * restore 'id' and mark as deprecated
This commit is contained in:
committed by
Eugenio Romano
parent
8b4af90b46
commit
aba9f41af1
@@ -9,7 +9,7 @@
|
||||
<p mat-line class="adf-version-list-item-comment" *ngIf="showComments">{{version.entry.versionComment}}</p>
|
||||
|
||||
<mat-menu #versionMenu="matMenu" yPosition="below" xPosition="before">
|
||||
<button
|
||||
<button *ngIf="canUpdate()"
|
||||
mat-menu-item
|
||||
(click)="restore(version.entry.id)">
|
||||
{{ 'ADF_VERSION_LIST.ACTIONS.RESTORE' | translate }}
|
||||
@@ -19,7 +19,7 @@
|
||||
(click)="downloadVersion(version.entry.id)">
|
||||
{{ 'ADF_VERSION_LIST.ACTIONS.DOWNLOAD' | translate }}
|
||||
</button>
|
||||
<button *ngIf="allowDelete"
|
||||
<button *ngIf="canUpdate()"
|
||||
(click)="deleteVersion(version.entry.id)"
|
||||
mat-menu-item>
|
||||
{{ 'ADF_VERSION_LIST.ACTIONS.DELETE' | translate }}
|
||||
|
Reference in New Issue
Block a user