mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
config based comments view
This commit is contained in:
committed by
Denys Vuika
parent
b36339ff9f
commit
9e5f4b58ab
@@ -12,21 +12,29 @@
|
||||
</adf-content-metadata-card>
|
||||
</adf-info-drawer-tab>
|
||||
|
||||
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.TABS.VERSIONS' | translate">
|
||||
<ng-container *ngIf="isFileSelected;else empty">
|
||||
<adf-version-manager
|
||||
[showComments]="'adf-version-manager.allowComments' | adfAppConfig:true"
|
||||
[allowDownload]="'adf-version-manager.allowDownload' | adfAppConfig:true"
|
||||
[node]="displayNode">
|
||||
</adf-version-manager>
|
||||
</ng-container>
|
||||
<ng-container *ifExperimental="'comments'; else versions">
|
||||
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.TABS.COMMENTS' | translate">
|
||||
<adf-comments [nodeId]="displayNode"></adf-comments>
|
||||
</adf-info-drawer-tab>
|
||||
</ng-container>
|
||||
|
||||
<ng-template #empty>
|
||||
<div class="adf-manage-versions-empty">
|
||||
<mat-icon class="adf-manage-versions-empty-icon">face</mat-icon>
|
||||
{{ 'VERSION.SELECTION.EMPTY' | translate }}
|
||||
</div>
|
||||
</ng-template>
|
||||
</adf-info-drawer-tab>
|
||||
<ng-template #versions>
|
||||
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.TABS.VERSIONS' | translate">
|
||||
<ng-container *ngIf="isFileSelected;else empty">
|
||||
<adf-version-manager
|
||||
[showComments]="'adf-version-manager.allowComments' | adfAppConfig:true"
|
||||
[allowDownload]="'adf-version-manager.allowDownload' | adfAppConfig:true"
|
||||
[node]="displayNode">
|
||||
</adf-version-manager>
|
||||
</ng-container>
|
||||
|
||||
<ng-template #empty>
|
||||
<div class="adf-manage-versions-empty">
|
||||
<mat-icon class="adf-manage-versions-empty-icon">face</mat-icon>
|
||||
{{ 'VERSION.SELECTION.EMPTY' | translate }}
|
||||
</div>
|
||||
</ng-template>
|
||||
</adf-info-drawer-tab>
|
||||
</ng-template>
|
||||
</adf-info-drawer>
|
||||
</ng-container>
|
||||
|
Reference in New Issue
Block a user