mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3226] remove Double behaviour setting allow download and comment (#3502)
* fix restore notification * improve path specification property * fix lint and document issues * fix test * remove unused import * remove double behavior allowComments and allowDonload can be set only thorough input property
This commit is contained in:
@@ -514,11 +514,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"adf-version-manager": {
|
|
||||||
"allowComments": true,
|
|
||||||
"allowDownload": true
|
|
||||||
},
|
|
||||||
|
|
||||||
"sideNav": {
|
"sideNav": {
|
||||||
"expandedSidenav": true,
|
"expandedSidenav": true,
|
||||||
"preserveState": true
|
"preserveState": true
|
||||||
|
@@ -71,8 +71,6 @@ export class VersionManagerComponent {
|
|||||||
constructor(config: AppConfigService,
|
constructor(config: AppConfigService,
|
||||||
private contentService: ContentService,
|
private contentService: ContentService,
|
||||||
private alfrescoApiService: AlfrescoApiService) {
|
private alfrescoApiService: AlfrescoApiService) {
|
||||||
this.showComments = config.get('adf-version-manager.allowComments', true);
|
|
||||||
this.allowDownload = config.get('adf-version-manager.allowDownload', true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onUploadSuccess(event) {
|
onUploadSuccess(event) {
|
||||||
|
@@ -487,14 +487,6 @@
|
|||||||
"scope": { "type": "string" }
|
"scope": { "type": "string" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"adf-version-manager": {
|
|
||||||
"description": "Configuration parameters for Version Manager component",
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"allowComments": { "type": "boolean" },
|
|
||||||
"allowDownload": { "type": "boolean" }
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"search": {
|
"search": {
|
||||||
"description": "Search configuration parameters",
|
"description": "Search configuration parameters",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@@ -41,7 +41,6 @@ var statusIcons;
|
|||||||
|
|
||||||
function initPhase(aggData) {
|
function initPhase(aggData) {
|
||||||
statusIcons = aggData.config["statusIcons"] || {};
|
statusIcons = aggData.config["statusIcons"] || {};
|
||||||
|
|
||||||
aggData.stoplist = makeStoplist(aggData.config);
|
aggData.stoplist = makeStoplist(aggData.config);
|
||||||
aggData.srcData = {};
|
aggData.srcData = {};
|
||||||
aggData.mdFileDesc = [];
|
aggData.mdFileDesc = [];
|
||||||
|
Reference in New Issue
Block a user