From c86133231d51256ff27e1bb97dc1cc0540bcea4b Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Wed, 12 Dec 2018 13:49:02 +0100 Subject: [PATCH 1/6] fix(filter):now really an or --- src/app/shared_modules/baseClass/filter-base-class.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/shared_modules/baseClass/filter-base-class.ts b/src/app/shared_modules/baseClass/filter-base-class.ts index abd05068f4..0c5801af18 100644 --- a/src/app/shared_modules/baseClass/filter-base-class.ts +++ b/src/app/shared_modules/baseClass/filter-base-class.ts @@ -83,6 +83,7 @@ export abstract class FilterBaseClass extends AbstractBaseClasse { isFilterProjectStatus(status_number: number, lifetime_reached: number): boolean { let status: string; + let lifetime_status: string; switch (status_number) { case this.project_statuses.ACTIVE: status = this.project_statuses[this.project_statuses.ACTIVE]; @@ -93,14 +94,14 @@ export abstract class FilterBaseClass extends AbstractBaseClasse { } switch (lifetime_reached) { case this.lifetime_statuses.EXPIRED: - status = this.lifetime_statuses[this.lifetime_statuses.EXPIRED]; + lifetime_status = this.lifetime_statuses[this.lifetime_statuses.EXPIRED]; break; case this.lifetime_statuses.EXPIRES_SOON: - status = this.lifetime_statuses[this.lifetime_statuses.EXPIRES_SOON]; + lifetime_status = this.lifetime_statuses[this.lifetime_statuses.EXPIRES_SOON]; } - if (this.filterstatus_list[status] + if (this.filterstatus_list[status] || this.filterstatus_list[lifetime_status] ) { return true From ceb408d93a294632940bbb6ed101628831e84537 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Wed, 12 Dec 2018 13:50:47 +0100 Subject: [PATCH 2/6] added a break --- src/app/shared_modules/baseClass/filter-base-class.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared_modules/baseClass/filter-base-class.ts b/src/app/shared_modules/baseClass/filter-base-class.ts index 0c5801af18..b5466cc526 100644 --- a/src/app/shared_modules/baseClass/filter-base-class.ts +++ b/src/app/shared_modules/baseClass/filter-base-class.ts @@ -97,7 +97,7 @@ export abstract class FilterBaseClass extends AbstractBaseClasse { lifetime_status = this.lifetime_statuses[this.lifetime_statuses.EXPIRED]; break; case this.lifetime_statuses.EXPIRES_SOON: - lifetime_status = this.lifetime_statuses[this.lifetime_statuses.EXPIRES_SOON]; + lifetime_status = this.lifetime_statuses[this.lifetime_statuses.EXPIRES_SOON];break; } From d3bb571df333ab8488e3dba43bd71ef18dce87dc Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Wed, 12 Dec 2018 14:28:14 +0100 Subject: [PATCH 3/6] feat(Application):vo can approve without facility --- src/app/applications/applications.component.html | 4 ++-- src/app/applications/applications.component.ts | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/applications/applications.component.html b/src/app/applications/applications.component.html index cc14711585..c088719c35 100644 --- a/src/app/applications/applications.component.html +++ b/src/app/applications/applications.component.html @@ -259,7 +259,7 @@

Applications Overview

class="form-control" #selectedComputeCenter> - +