From b661ee985834f668aecc70f7aa005bdc4f48b87f Mon Sep 17 00:00:00 2001 From: Darya Baklanova Date: Thu, 18 Jan 2018 16:53:38 +0700 Subject: [PATCH] fix(firewall-rules): fix firewall rule types sorting and alignment (closes #868) (#883) --- src/app/security-group/sg-rules/sg-rule.component.scss | 2 +- src/app/security-group/sg-rules/sg-rules.component.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/security-group/sg-rules/sg-rule.component.scss b/src/app/security-group/sg-rules/sg-rule.component.scss index 78b42b6be9..0039a17a44 100644 --- a/src/app/security-group/sg-rules/sg-rule.component.scss +++ b/src/app/security-group/sg-rules/sg-rule.component.scss @@ -7,6 +7,6 @@ border-bottom: none !important; .mat-cell { - padding: 5px 18px; + padding: 5px 10px; } } diff --git a/src/app/security-group/sg-rules/sg-rules.component.ts b/src/app/security-group/sg-rules/sg-rules.component.ts index 6c7e9fa063..6af3f17431 100644 --- a/src/app/security-group/sg-rules/sg-rules.component.ts +++ b/src/app/security-group/sg-rules/sg-rules.component.ts @@ -69,7 +69,8 @@ export class SgRulesComponent implements OnChanges { key: 'types', label: 'SECURITY_GROUP_PAGE.FILTERS.TYPES', selector: (item: NetworkRule) => item.type, - name: (item: NetworkRule) => `SECURITY_GROUP_PAGE.RULES.${item.type.toUpperCase()}_DISPLAY` + name: (item: NetworkRule) => this.translateService + .instant(`SECURITY_GROUP_PAGE.RULES.${item.type.toUpperCase()}_DISPLAY`) }, { key: 'protocols', label: 'SECURITY_GROUP_PAGE.FILTERS.PROTOCOLS',