From 7081b6c9145efc7881cbfe49460dc33e96eadcd1 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Tue, 27 Nov 2018 12:28:20 +0000 Subject: [PATCH] 1. pages.component: Reinitialize keyword in search form when changing page type. 2. communities.component & divIds.component & div-help-contents.component & entities.component & page-help-contents.component & pages.component: Bug fix: Change search forms to search on 'search' button click or enter. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@53984 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/pages/community/communities.component.html | 10 ++++++++-- src/app/pages/community/communities.component.ts | 2 ++ src/app/pages/divId/divIds.component.html | 10 ++++++++-- src/app/pages/divId/divIds.component.ts | 1 + .../divhelpcontent/div-help-contents.component.html | 12 +++++++++--- .../divhelpcontent/div-help-contents.component.ts | 1 + src/app/pages/entity/entities.component.html | 10 ++++++++-- src/app/pages/entity/entities.component.ts | 1 + .../helpcontent/page-help-contents.component.html | 10 ++++++++-- .../helpcontent/page-help-contents.component.ts | 1 + src/app/pages/page/pages.component.html | 10 ++++++++-- src/app/pages/page/pages.component.ts | 3 +++ 12 files changed, 58 insertions(+), 13 deletions(-) diff --git a/src/app/pages/community/communities.component.html b/src/app/pages/community/communities.component.html index 4961adb..bf5a7d5 100644 --- a/src/app/pages/community/communities.component.html +++ b/src/app/pages/community/communities.component.html @@ -6,8 +6,14 @@ {{updateErrorMessage}} diff --git a/src/app/pages/community/communities.component.ts b/src/app/pages/community/communities.component.ts index 756582a..04a8b44 100644 --- a/src/app/pages/community/communities.component.ts +++ b/src/app/pages/community/communities.component.ts @@ -47,6 +47,8 @@ export class CommunitiesComponent implements OnInit { public formGroup : FormGroup; private searchText : RegExp = new RegExp(''); + public keyword: string = ""; + public properties:EnvProperties = null; public showLoading: boolean = true; diff --git a/src/app/pages/divId/divIds.component.html b/src/app/pages/divId/divIds.component.html index a15494b..6bfb504 100644 --- a/src/app/pages/divId/divIds.component.html +++ b/src/app/pages/divId/divIds.component.html @@ -6,8 +6,14 @@ {{updateErrorMessage}} diff --git a/src/app/pages/divId/divIds.component.ts b/src/app/pages/divId/divIds.component.ts index e807e7a..3eee495 100644 --- a/src/app/pages/divId/divIds.component.ts +++ b/src/app/pages/divId/divIds.component.ts @@ -46,6 +46,7 @@ export class DivIdsComponent implements OnInit { public formGroup : FormGroup; private searchText : RegExp = new RegExp(''); + public keyword: string = ""; public pages: Page[] = []; public properties:EnvProperties = null; diff --git a/src/app/pages/divhelpcontent/div-help-contents.component.html b/src/app/pages/divhelpcontent/div-help-contents.component.html index 70a5a2d..dbfb67d 100644 --- a/src/app/pages/divhelpcontent/div-help-contents.component.html +++ b/src/app/pages/divhelpcontent/div-help-contents.component.html @@ -30,8 +30,14 @@
diff --git a/src/app/pages/entity/entities.component.ts b/src/app/pages/entity/entities.component.ts index deff8fb..906dd00 100644 --- a/src/app/pages/entity/entities.component.ts +++ b/src/app/pages/entity/entities.component.ts @@ -39,6 +39,7 @@ export class EntitiesComponent implements OnInit { public formGroup : FormGroup; private searchText : RegExp = new RegExp(''); + public keyword: string = ""; public communities: Community[] = []; public selectedCommunityPid: string; diff --git a/src/app/pages/helpcontent/page-help-contents.component.html b/src/app/pages/helpcontent/page-help-contents.component.html index b4dde56..6a27903 100644 --- a/src/app/pages/helpcontent/page-help-contents.component.html +++ b/src/app/pages/helpcontent/page-help-contents.component.html @@ -28,8 +28,14 @@
diff --git a/src/app/pages/page/pages.component.ts b/src/app/pages/page/pages.component.ts index 772c0e5..ac378fa 100644 --- a/src/app/pages/page/pages.component.ts +++ b/src/app/pages/page/pages.component.ts @@ -49,6 +49,7 @@ export class PagesComponent implements OnInit { public formGroup : FormGroup; private searchText : RegExp = new RegExp(''); + public keyword: string = ""; public communities: Community[] = []; @@ -75,6 +76,8 @@ export class PagesComponent implements OnInit { this.pagesType = params['type']; } + this.keyword = ""; + this.selectedCommunityPid = params['communityId']; this.applyCommunityFilter(this.selectedCommunityPid); this.isPortalAdministrator = Session.isPortalAdministrator();