update demo shell with metadata demo

This commit is contained in:
Denys Vuika
2018-06-20 07:47:41 +01:00
parent 0fae46b50b
commit 491cc3253f

View File

@@ -386,29 +386,38 @@
</adf-upload-drag-area> </adf-upload-drag-area>
<adf-info-drawer-layout *ngIf="showVersions" class="adf-manage-versions-sidebar" fxFlex="0 0 auto"> <adf-info-drawer-layout *ngIf="showVersions" class="adf-manage-versions-sidebar" fxFlex="0 0 auto">
<div info-drawer-content> <div info-drawer-content>
<ng-container *ngIf="hasOneFileSelected();else choose_document_template">
<ng-container *ngIf="userHasPermissionToManageVersions(); else no_permission_to_versions"> <adf-info-drawer [title]="'Details'">
<adf-version-manager <adf-info-drawer-tab [label]="'Properties'">
[node]="documentList.selection[0].entry" <adf-content-metadata-card
[showComments]="showVersionComments" [node]="documentList.selection[0].entry">
[allowDownload]="allowVersionDownload"> </adf-content-metadata-card>
</adf-version-manager> </adf-info-drawer-tab>
</ng-container> <adf-info-drawer-tab [label]="'Versions'">
</ng-container> <ng-container *ngIf="hasOneFileSelected();else choose_document_template">
<ng-template #choose_document_template> <ng-container *ngIf="userHasPermissionToManageVersions(); else no_permission_to_versions">
<div class="adf-manage-versions-empty"> <adf-version-manager
<mat-icon class="adf-manage-versions-empty-icon">face</mat-icon> [node]="documentList.selection[0].entry"
{{'VERSION.CHOOSE_FILE' | translate}} [showComments]="showVersionComments"
</div> [allowDownload]="allowVersionDownload">
</ng-template> </adf-version-manager>
<ng-template #no_permission_to_versions> </ng-container>
<div class="adf-manage-versions-no-permission"> </ng-container>
<mat-icon class="adf-manage-versions-no-permission-icon">warning</mat-icon> <ng-template #choose_document_template>
{{'VERSION.NO_PERMISSION' | translate}} <div class="adf-manage-versions-empty">
</div> <mat-icon class="adf-manage-versions-empty-icon">face</mat-icon>
</ng-template> {{'VERSION.CHOOSE_FILE' | translate}}
</div>
</ng-template>
<ng-template #no_permission_to_versions>
<div class="adf-manage-versions-no-permission">
<mat-icon class="adf-manage-versions-no-permission-icon">warning</mat-icon>
{{'VERSION.NO_PERMISSION' | translate}}
</div>
</ng-template>
</adf-info-drawer-tab>
</adf-info-drawer>
</div> </div>
</adf-info-drawer-layout> </adf-info-drawer-layout>
</div> </div>