From c8ad8bf8434b7b1c67e8bb5d5ff5c3e6ce765032 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 (cherry picked from commit c31f699bd78d54b8cdab52e78bec3044c99ce4d7) --- .../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 aef7697da2f20..160962d666f52 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 73459a364d50e..9d5e67a897dd3 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 aecb76925ccf5..91449c7d3d888 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 50d1a6e9e5d8a..5ad6520e26c75 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">