From c31f699bd78d54b8cdab52e78bec3044c99ce4d7 Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Thu, 20 Oct 2022 21:31:34 +0530 Subject: [PATCH] mgr/dashboard: rgw encryption modal and host component cleanup along with some additional cleanups Signed-off-by: Nizamudeen A --- .../ceph/cluster/hosts/hosts.component.html | 3 +- .../app/ceph/cluster/hosts/hosts.component.ts | 4 +- .../rgw-bucket-form.component.ts | 2 +- .../rgw-config-modal.component.html | 48 ++++++++++--------- .../rgw-config-modal.component.ts | 2 +- .../directives/form-loading.directive.ts | 18 +++---- .../src/styles/bootstrap-extends.scss | 1 - .../src/styles/ceph-custom/_buttons.scss | 8 +--- .../src/styles/ceph-custom/_forms.scss | 2 +- 9 files changed, 39 insertions(+), 49 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.html index aef7697da2f..160962d666f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.html @@ -54,8 +54,7 @@ - {{ instance }} -   + {{ instance }} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts index 73459a364d5..9d5e67a897d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts @@ -199,7 +199,7 @@ export class HostsComponent extends ListWithDetails implements OnDestroy, OnInit { name: $localize`Service Instances`, prop: 'service_instances', - flexGrow: 1, + flexGrow: 1.5, cellTemplate: this.servicesTpl }, { @@ -214,7 +214,7 @@ export class HostsComponent extends ListWithDetails implements OnDestroy, OnInit { name: $localize`Status`, prop: 'status', - flexGrow: 1, + flexGrow: 0.8, cellTransformation: CellTemplate.badge, customTemplateConfig: { map: { diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.ts index aecb76925cc..91449c7d3d8 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.ts @@ -332,7 +332,7 @@ export class RgwBucketFormComponent extends CdForm implements OnInit, AfterViewC } openConfigModal() { - const modalRef = this.modalService.show(RgwConfigModalComponent); + const modalRef = this.modalService.show(RgwConfigModalComponent, null, { size: 'lg' }); modalRef.componentInstance.configForm .get('encryptionType') .setValue(this.bucketForm.getValue('encryption_type')); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-config-modal/rgw-config-modal.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-config-modal/rgw-config-modal.component.html index e9da6823160..614b9a55c5f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-config-modal/rgw-config-modal.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-config-modal/rgw-config-modal.component.html @@ -7,29 +7,33 @@ #frm="ngForm" [formGroup]="configForm">