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,6 +12,13 @@
</adf-content-metadata-card> </adf-content-metadata-card>
</adf-info-drawer-tab> </adf-info-drawer-tab>
<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 #versions>
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.TABS.VERSIONS' | translate"> <adf-info-drawer-tab [label]="'APP.INFO_DRAWER.TABS.VERSIONS' | translate">
<ng-container *ngIf="isFileSelected;else empty"> <ng-container *ngIf="isFileSelected;else empty">
<adf-version-manager <adf-version-manager
@@ -28,5 +35,6 @@
</div> </div>
</ng-template> </ng-template>
</adf-info-drawer-tab> </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"
} }
} }
}, },