From ea4c9fe9aa56612fde3969d570ed50f36f0f63ae Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Tue, 19 Jun 2018 08:45:11 +0100 Subject: [PATCH] [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 --- demo-shell/src/app.config.json | 5 ----- .../version-manager/version-manager.component.ts | 2 -- lib/core/app-config/schema.json | 8 -------- tools/doc/tools/index.js | 1 - 4 files changed, 16 deletions(-) diff --git a/demo-shell/src/app.config.json b/demo-shell/src/app.config.json index 95699fbf14..1483a27c5d 100644 --- a/demo-shell/src/app.config.json +++ b/demo-shell/src/app.config.json @@ -514,11 +514,6 @@ } } }, - "adf-version-manager": { - "allowComments": true, - "allowDownload": true - }, - "sideNav": { "expandedSidenav": true, "preserveState": true diff --git a/lib/content-services/version-manager/version-manager.component.ts b/lib/content-services/version-manager/version-manager.component.ts index f5e167dc72..4739c718e3 100644 --- a/lib/content-services/version-manager/version-manager.component.ts +++ b/lib/content-services/version-manager/version-manager.component.ts @@ -71,8 +71,6 @@ export class VersionManagerComponent { constructor(config: AppConfigService, private contentService: ContentService, private alfrescoApiService: AlfrescoApiService) { - this.showComments = config.get('adf-version-manager.allowComments', true); - this.allowDownload = config.get('adf-version-manager.allowDownload', true); } onUploadSuccess(event) { diff --git a/lib/core/app-config/schema.json b/lib/core/app-config/schema.json index 66ca4d247c..6d9eef4483 100644 --- a/lib/core/app-config/schema.json +++ b/lib/core/app-config/schema.json @@ -487,14 +487,6 @@ "scope": { "type": "string" } } }, - "adf-version-manager": { - "description": "Configuration parameters for Version Manager component", - "type": "object", - "properties": { - "allowComments": { "type": "boolean" }, - "allowDownload": { "type": "boolean" } - } - }, "search": { "description": "Search configuration parameters", "type": "object", diff --git a/tools/doc/tools/index.js b/tools/doc/tools/index.js index 619e671519..1bad3d75ce 100644 --- a/tools/doc/tools/index.js +++ b/tools/doc/tools/index.js @@ -41,7 +41,6 @@ var statusIcons; function initPhase(aggData) { statusIcons = aggData.config["statusIcons"] || {}; - aggData.stoplist = makeStoplist(aggData.config); aggData.srcData = {}; aggData.mdFileDesc = [];