<ng-template #servicesTpl
let-value="value">
<span *ngFor="let instance of value; last as isLast">
- <span class="badge badge-background-primary" >{{ instance }}</span>
- <ng-container *ngIf="!isLast"> </ng-container>
+ <span class="badge badge-background-primary ms-1" >{{ instance }}</span>
</span>
</ng-template>
{
name: $localize`Service Instances`,
prop: 'service_instances',
- flexGrow: 1,
+ flexGrow: 1.5,
cellTemplate: this.servicesTpl
},
{
{
name: $localize`Status`,
prop: 'status',
- flexGrow: 1,
+ flexGrow: 0.8,
cellTransformation: CellTemplate.badge,
customTemplateConfig: {
map: {
}
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'));
#frm="ngForm"
[formGroup]="configForm">
<div class="modal-body">
- <label class="cd-col-form-label">Encryption Type:</label>
- <div class="custom-control custom-radio custom-control-inline">
- <input class="custom-control-input"
- formControlName="encryptionType"
- id="s3Enabled"
- type="radio"
- name="encryptionType"
- value="AES256">
- <label class="custom-control-label"
- for="s3Enabled"
- i18n>SSE-S3 Encryption</label>
- </div>
+ <div class="form-group row">
+ <label class="cd-col-form-label required"
+ for="encryptionType"
+ i18n>Encryption Type</label>
+ <div class="col-md-auto custom-checkbox form-check-inline ms-3">
+ <input class="form-check-input"
+ formControlName="encryptionType"
+ id="s3Enabled"
+ type="radio"
+ name="encryptionType"
+ value="AES256">
+ <label class="custom-check-label"
+ for="s3Enabled"
+ i18n>SSE-S3 Encryption</label>
+ </div>
- <div class="custom-control custom-radio custom-control-inline">
- <input class="custom-control-input"
- formControlName="encryptionType"
- id="kmsEnabled"
- name="encryptionType"
- value="aws:kms"
- type="radio">
- <label class="custom-control-label"
- for="kmsEnabled"
- i18n>SSE-KMS Encryption</label>
+ <div class="col-md-auto custom-checkbox form-check-inline">
+ <input class="form-check-input"
+ formControlName="encryptionType"
+ id="kmsEnabled"
+ name="encryptionType"
+ value="aws:kms"
+ type="radio">
+ <label class="custom-check-label"
+ for="kmsEnabled"
+ i18n>SSE-KMS Encryption</label>
+ </div>
</div>
<div *ngIf="configForm.getValue('encryptionType') == 'aws:kms' || configForm.getValue('encryptionType') == 'AES256'">
]
],
kms_provider: ['vault', Validators.required],
- encryptionType: [null, Validators.required],
+ encryptionType: ['aws:kms', Validators.required],
auth_method: [null, Validators.required],
secret_engine: [null, Validators.required],
secret_path: ['/'],
-import {
- Directive,
- Input,
- TemplateRef,
- ViewContainerRef
-} from '@angular/core';
+import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';
import { AlertPanelComponent } from '../components/alert-panel/alert-panel.component';
import { LoadingPanelComponent } from '../components/loading-panel/loading-panel.component';
selector: '[cdFormLoading]'
})
export class FormLoadingDirective {
- constructor(
- private templateRef: TemplateRef<any>,
- private viewContainer: ViewContainerRef
- ) {}
+ constructor(private templateRef: TemplateRef<any>, private viewContainer: ViewContainerRef) {}
@Input('cdFormLoading') set cdFormLoading(condition: LoadingStatus) {
let content: any;
switch (condition) {
case LoadingStatus.Loading:
content = this.resolveNgContent($localize`Loading form data...`);
- this.viewContainer.createComponent(LoadingPanelComponent, {projectableNodes: content});
+ this.viewContainer.createComponent(LoadingPanelComponent, { projectableNodes: content });
break;
case LoadingStatus.Ready:
this.viewContainer.createEmbeddedView(this.templateRef);
break;
case LoadingStatus.Error:
content = this.resolveNgContent($localize`Form data could not be loaded.`);
- const componentRef = this.viewContainer.createComponent(AlertPanelComponent, {projectableNodes: content});
+ const componentRef = this.viewContainer.createComponent(AlertPanelComponent, {
+ projectableNodes: content
+ });
(<AlertPanelComponent>componentRef.instance).type = 'error';
break;
}
.fa {
@extend .fa-fw;
}
-
.form-check-input.is-valid {
border-color: rgba(vv.$primary, 0.8);
- &:checked{
+ &:checked {
background-color: vv.$primary;
border-color: rgba(vv.$primary, 0.8);
box-shadow: 0 0 3px 2px rgba(vv.$primary, 0.5);
.card-footer button.btn:not(:first-child) {
margin-left: 5px;
}
-
-button {
- &.disabled {
- pointer-events: none !important;
- }
-}
display: block;
}
-.form-group{
+.form-group {
@extend .mb-3;
}