mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1523] Shared - file version manager (#486)
* workaround shared isFile * revert commented
This commit is contained in:
committed by
Denys Vuika
parent
7c66750edc
commit
cdfcccff3c
@@ -80,8 +80,8 @@
|
|||||||
|
|
||||||
<button
|
<button
|
||||||
mat-menu-item
|
mat-menu-item
|
||||||
*ngIf="selection.count === 1 && permission.check(selection.nodes, ['update'], { target: 'allowableOperationsOnTarget' })"
|
*ngIf="selection.file && permission.check(selection.file, ['update'], { target: 'allowableOperationsOnTarget' })"
|
||||||
[acaNodeVersions]="selection.nodes">
|
[acaNodeVersions]="selection.file">
|
||||||
<mat-icon>history</mat-icon>
|
<mat-icon>history</mat-icon>
|
||||||
<span>{{ 'APP.ACTIONS.VERSIONS' | translate }}</span>
|
<span>{{ 'APP.ACTIONS.VERSIONS' | translate }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
@@ -152,7 +152,10 @@ function updateSelectedNodes(
|
|||||||
last = nodes[nodes.length - 1];
|
last = nodes[nodes.length - 1];
|
||||||
|
|
||||||
if (nodes.length === 1) {
|
if (nodes.length === 1) {
|
||||||
file = nodes.find(entity => entity.entry.isFile);
|
file = nodes.find(entity => {
|
||||||
|
// workaround Shared
|
||||||
|
return entity.entry.isFile || entity.entry.nodeId;
|
||||||
|
});
|
||||||
folder = nodes.find(entity => entity.entry.isFolder);
|
folder = nodes.find(entity => entity.entry.isFolder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user