mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACA-1445] Shared files - verison manager panel (#397)
* shared files verion manager panel * show content when loaded * node info loaded * cast as boolean
This commit is contained in:
committed by
Denys Vuika
parent
9076c7ee9f
commit
4c1556e475
@@ -1,7 +1,7 @@
|
|||||||
<div *ngIf="isLoading">
|
<div *ngIf="isLoading">
|
||||||
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
<ng-container *ngIf="node">
|
<ng-container *ngIf="!isLoading && !!displayNode">
|
||||||
<adf-info-drawer [title]="'APP.INFO_DRAWER.TITLE' | translate">
|
<adf-info-drawer [title]="'APP.INFO_DRAWER.TITLE' | translate">
|
||||||
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.TABS.PROPERTIES' | translate">
|
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.TABS.PROPERTIES' | translate">
|
||||||
<adf-content-metadata-card
|
<adf-content-metadata-card
|
||||||
|
|||||||
@@ -55,7 +55,12 @@ export class InfoDrawerComponent implements OnChanges {
|
|||||||
|
|
||||||
get isFileSelected(): boolean {
|
get isFileSelected(): boolean {
|
||||||
if (this.node && this.node.entry) {
|
if (this.node && this.node.entry) {
|
||||||
return this.node.entry.isFile;
|
// workaround for shared files type.
|
||||||
|
if (this.node.entry.nodeId) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return this.node.entry.isFile;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user