diff options
author | MichaelMorris <michael.morris@est.tech> | 2022-04-21 16:27:59 +0100 |
---|---|---|
committer | Vasyl Razinkov <vasyl.razinkov@est.tech> | 2022-04-25 12:12:08 +0000 |
commit | 7ce54a98719426a32e041e5bf30c950a4b226734 (patch) | |
tree | 3fcd07521d28b5b9c0ec9c4fb8e78b0fc3431ed8 /catalog-ui/src | |
parent | 152e7a756ad823bd4f393079db82cae8e24bb210 (diff) |
Add <= and >= operators to node filter
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-3979
Change-Id: I2814157e8fafd02c094afd8270a20c0e47687b18
Diffstat (limited to 'catalog-ui/src')
-rw-r--r-- | catalog-ui/src/app/ng2/components/logic/service-dependencies/service-dependencies.component.ts | 10 | ||||
-rw-r--r-- | catalog-ui/src/assets/styles/form-elements.less | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/catalog-ui/src/app/ng2/components/logic/service-dependencies/service-dependencies.component.ts b/catalog-ui/src/app/ng2/components/logic/service-dependencies/service-dependencies.component.ts index cdb1cd84e5..4d695593ec 100644 --- a/catalog-ui/src/app/ng2/components/logic/service-dependencies/service-dependencies.component.ts +++ b/catalog-ui/src/app/ng2/components/logic/service-dependencies/service-dependencies.component.ts @@ -77,7 +77,9 @@ export class ConstraintObjectUI extends ConstraintObject{ export const OPERATOR_TYPES = { EQUAL: 'equal', GREATER_THAN: 'greater_than', - LESS_THAN: 'less_than' + LESS_THAN: 'less_than', + GREATER_OR_EQUAL: 'greater_or_equal', + LESS_OR_EQUAL: 'less_or_equal' }; // tslint:disable-next-line:max-classes-per-file @@ -165,7 +167,9 @@ export class ServiceDependenciesComponent { this.operatorTypes = [ {label: '>', value: OPERATOR_TYPES.GREATER_THAN}, {label: '<', value: OPERATOR_TYPES.LESS_THAN}, - {label: '=', value: OPERATOR_TYPES.EQUAL} + {label: '=', value: OPERATOR_TYPES.EQUAL}, + {label: '>=', value: OPERATOR_TYPES.GREATER_OR_EQUAL}, + {label: '<=', value: OPERATOR_TYPES.LESS_OR_EQUAL} ]; this.topologyTemplateService.getComponentInputsWithProperties(this.compositeService.componentType, this.compositeService.uniqueId) .subscribe((result: ComponentGenericResponse) => { @@ -457,6 +461,8 @@ export class ServiceDependenciesComponent { case OPERATOR_TYPES.LESS_THAN: return '<'; case OPERATOR_TYPES.EQUAL: return '='; case OPERATOR_TYPES.GREATER_THAN: return '>'; + case OPERATOR_TYPES.GREATER_OR_EQUAL: return '>='; + case OPERATOR_TYPES.LESS_OR_EQUAL: return '<='; } } diff --git a/catalog-ui/src/assets/styles/form-elements.less b/catalog-ui/src/assets/styles/form-elements.less index 9f8146d3f5..aca7ef9f89 100644 --- a/catalog-ui/src/assets/styles/form-elements.less +++ b/catalog-ui/src/assets/styles/form-elements.less @@ -106,7 +106,7 @@ input[type="url"], input[type="number"], input[type="password"] { padding: 4px 10px;} - select { padding: 4px 7px;} + select { padding: 4px 0px;} textarea { padding: 6px 10px;} select { |