From 5ccca64ee08a638996c1a1288129bdfe526dd88a Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Fri, 30 Oct 2020 14:01:44 +0000 Subject: [PATCH] [Library|Trunk] Admin tool pages: updates after migration css updates after theme change portal: add piwik id Navbar: optionto enable/disable sticky animation git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59726 d315682c-612b-4755-9ff5-7f18f6832af3 --- dashboard/divId/divIds.component.html | 12 +- dashboard/divId/divIds.component.ts | 4 +- .../div-help-content-form.component.ts | 2 +- .../div-help-contents.component.html | 19 +- .../div-help-contents.component.ts | 6 +- .../edit-div-help-content.component.ts | 8 +- .../new-div-help-content.component.ts | 4 +- dashboard/entity/entities.component.html | 12 +- .../edit-page-help-content.component.ts | 6 +- .../new-page-help-content.component.ts | 4 +- .../page-help-content-form.component.ts | 4 +- .../page-help-contents.component.html | 15 +- .../helpTexts/page-help-contents.component.ts | 8 +- dashboard/page/pages.component.html | 43 +- dashboard/page/pages.component.ts | 9 +- dashboard/portal/portalHelper.ts | 16 + ....component.html => portals.component.html} | 21 +- ...ties.component.ts => portals.component.ts} | 25 +- ...ommunities.module.ts => portals.module.ts} | 8 +- .../sidebar/sideBar.component.html | 10 +- .../sidebar/sideBar.component.ts | 3 +- services/help-content.service.ts | 523 ++++++++++-------- sharedComponents/navigationBar.component.html | 3 +- sharedComponents/navigationBar.component.ts | 1 + utils/entities/adminTool/community.ts | 17 + utils/entities/adminTool/divId.ts | 2 +- utils/entities/adminTool/html-page-content.ts | 2 +- utils/entities/adminTool/page-help-content.ts | 2 +- utils/entities/adminTool/portal.ts | 1 + 29 files changed, 444 insertions(+), 346 deletions(-) create mode 100644 dashboard/portal/portalHelper.ts rename dashboard/portal/{communities.component.html => portals.component.html} (87%) rename dashboard/portal/{communities.component.ts => portals.component.ts} (93%) rename dashboard/portal/{communities.module.ts => portals.module.ts} (79%) create mode 100644 utils/entities/adminTool/community.ts diff --git a/dashboard/divId/divIds.component.html b/dashboard/divId/divIds.component.html index 92b89015..ae2dd26a 100644 --- a/dashboard/divId/divIds.component.html +++ b/dashboard/divId/divIds.component.html @@ -35,7 +35,7 @@
-
-
- add +
+
diff --git a/dashboard/divId/divIds.component.ts b/dashboard/divId/divIds.component.ts index 61e2f634..ca5ba80a 100644 --- a/dashboard/divId/divIds.component.ts +++ b/dashboard/divId/divIds.component.ts @@ -101,7 +101,7 @@ export class DivIdsComponent implements OnInit { this.updateErrorMessage = ""; this.errorMessage = ""; - this._helpContentService.getDivIdsFull(null, this.properties.adminToolsAPIURL).subscribe( + this._helpContentService.getAllDivIdsFull( this.properties.adminToolsAPIURL).subscribe( divIds => { this.divIds = divIds; this.checkboxes = []; @@ -326,7 +326,7 @@ export class DivIdsComponent implements OnInit { getPages() { this.showLoading = true; this.errorMessage = ""; - this._helpContentService.getPages(this.properties.adminToolsAPIURL, this.selectedCommunityPid).subscribe( + this._helpContentService.getAllPages(this.properties.adminToolsAPIURL).subscribe( pages => { this.allPages = pages; this.showLoading = false; diff --git a/dashboard/divhelpcontent/div-help-content-form.component.ts b/dashboard/divhelpcontent/div-help-content-form.component.ts index 8778d822..f398e623 100644 --- a/dashboard/divhelpcontent/div-help-content-form.component.ts +++ b/dashboard/divhelpcontent/div-help-content-form.component.ts @@ -116,7 +116,7 @@ export class DivContentFormComponent implements OnInit{ //this.showLoading = true; this.errorMessage = ''; - this._helpContentService.getDivIdsFull(pageId, this.properties.adminToolsAPIURL, this.communityPid).subscribe( + this._helpContentService.getDivIdsFullByPortal(pageId, this.properties.adminToolsAPIURL, this.communityPid).subscribe( divs => { this.availableDivs = divs; this.pageId = pageId; diff --git a/dashboard/divhelpcontent/div-help-contents.component.html b/dashboard/divhelpcontent/div-help-contents.component.html index 0250a855..9d38666b 100644 --- a/dashboard/divhelpcontent/div-help-contents.component.html +++ b/dashboard/divhelpcontent/div-help-contents.component.html @@ -16,17 +16,12 @@