config based comments view

This commit is contained in:
Bogdan Cilibiu
2018-07-04 09:03:34 +03:00
committed by Denys Vuika
parent b36339ff9f
commit 9e5f4b58ab
3 changed files with 27 additions and 17 deletions

View File

@@ -9,7 +9,8 @@
"© 2017 - 2018 Alfresco Software, Inc. All rights reserved." "© 2017 - 2018 Alfresco Software, Inc. All rights reserved."
}, },
"experimental": { "experimental": {
"libraries": false "libraries": false,
"comments": false
}, },
"headerColor": "#2196F3", "headerColor": "#2196F3",
"languagePicker": false, "languagePicker": false,

View File

@@ -12,21 +12,29 @@
</adf-content-metadata-card> </adf-content-metadata-card>
</adf-info-drawer-tab> </adf-info-drawer-tab>
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.TABS.VERSIONS' | translate"> <ng-container *ifExperimental="'comments'; else versions">
<ng-container *ngIf="isFileSelected;else empty"> <adf-info-drawer-tab [label]="'APP.INFO_DRAWER.TABS.COMMENTS' | translate">
<adf-version-manager <adf-comments [nodeId]="displayNode"></adf-comments>
[showComments]="'adf-version-manager.allowComments' | adfAppConfig:true" </adf-info-drawer-tab>
[allowDownload]="'adf-version-manager.allowDownload' | adfAppConfig:true" </ng-container>
[node]="displayNode">
</adf-version-manager>
</ng-container>
<ng-template #empty> <ng-template #versions>
<div class="adf-manage-versions-empty"> <adf-info-drawer-tab [label]="'APP.INFO_DRAWER.TABS.VERSIONS' | translate">
<mat-icon class="adf-manage-versions-empty-icon">face</mat-icon> <ng-container *ngIf="isFileSelected;else empty">
{{ 'VERSION.SELECTION.EMPTY' | translate }} <adf-version-manager
</div> [showComments]="'adf-version-manager.allowComments' | adfAppConfig:true"
</ng-template> [allowDownload]="'adf-version-manager.allowDownload' | adfAppConfig:true"
</adf-info-drawer-tab> [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> </adf-info-drawer>
</ng-container> </ng-container>

View File

@@ -232,7 +232,8 @@
"TITLE": "Details", "TITLE": "Details",
"TABS": { "TABS": {
"PROPERTIES": "Properties", "PROPERTIES": "Properties",
"VERSIONS": "Versions" "VERSIONS": "Versions",
"COMMENTS": "Comments"
} }
} }
}, },