[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:
Cilibiu Bogdan
2018-06-12 07:52:34 +01:00
committed by Denys Vuika
parent 9076c7ee9f
commit 4c1556e475
2 changed files with 7 additions and 2 deletions
@@ -1,7 +1,7 @@
<div *ngIf="isLoading">
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
</div>
<ng-container *ngIf="node">
<ng-container *ngIf="!isLoading && !!displayNode">
<adf-info-drawer [title]="'APP.INFO_DRAWER.TITLE' | translate">
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.TABS.PROPERTIES' | translate">
<adf-content-metadata-card
@@ -55,7 +55,12 @@ export class InfoDrawerComponent implements OnChanges {
get isFileSelected(): boolean {
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;
}