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
@@ -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,
|
||||||
|
@@ -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>
|
||||||
|
@@ -232,7 +232,8 @@
|
|||||||
"TITLE": "Details",
|
"TITLE": "Details",
|
||||||
"TABS": {
|
"TABS": {
|
||||||
"PROPERTIES": "Properties",
|
"PROPERTIES": "Properties",
|
||||||
"VERSIONS": "Versions"
|
"VERSIONS": "Versions",
|
||||||
|
"COMMENTS": "Comments"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user