Skip to content

Commit

Permalink
Merge pull request #56706 from afreen23/wip-65208-squid
Browse files Browse the repository at this point in the history
squid: mgr/dashboard:Update encryption and tags in bucket form

Reviewed-by: Nizamudeen A <nia@redhat.com>
  • Loading branch information
nizamial09 committed Apr 5, 2024
2 parents dfd75a9 + f1bd5c8 commit 584a67c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export class BucketsPageHelper extends PageHelper {

@PageHelper.restrictTo(pages.create.url)
checkForDefaultEncryption() {
cy.get("cd-helper[aria-label='toggle encryption helper']").click();
cy.get("a[aria-label='click here']").click();
cy.get('cd-modal').within(() => {
cy.get('input[id=s3Enabled]').should('be.checked');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,30 +280,30 @@
</div>
</fieldset>

<!-- Security -->
<!-- Encryption -->
<fieldset>
<legend class="cd-header"
i18n>Security</legend>
i18n>Encryption</legend>
<div class="form-group row">
<div class="cd-col-form-offset">
<div class="custom-control custom-checkbox">
<input class="form-check-input"
id="encryption_enabled"
name="encryption_enabled"
formControlName="encryption_enabled"
type="checkbox"
[attr.disabled]="!kmsVaultConfig && !s3VaultConfig ? true : null">
<label class="form-check-label"
for="encryption_enabled"
i18n>Encryption</label>
<cd-helper aria-label="toggle encryption helper">
<span i18n>Enables encryption for the objects in the bucket.
To enable encryption on a bucket you need to set the configuration values for SSE-S3 or SSE-KMS.
To set the configuration values <a href="#/rgw/bucket/create"
(click)="openConfigModal()"
aria-label="click here">Click here</a></span>
</cd-helper>
</div>
<label class="cd-col-form-label pt-0"
for="encryption_enabled"
i18n>
Enable
</label>
<div class="cd-col-form-input">
<input class="form-check-input"
id="encryption_enabled"
name="encryption_enabled"
formControlName="encryption_enabled"
type="checkbox"
[attr.disabled]="!kmsVaultConfig && !s3VaultConfig ? true : null"/>
<cd-help-text aria-label="encryption helper">
<span i18n>Enables encryption for the objects in the bucket.
To enable encryption on a bucket you need to set the configuration values for SSE-S3 or SSE-KMS.
To set the configuration values <a href="#/rgw/bucket/create"
(click)="openConfigModal()"
aria-label="click here">Click here</a></span>
</cd-help-text>
</div>
</div>

Expand Down Expand Up @@ -391,7 +391,7 @@
<fieldset>
<legend class="cd-header"
i18n>Tags
<cd-helper>Tagging gives you a way to categorize storage</cd-helper>
<cd-help-text>Tagging provides a way to categorize storage</cd-help-text>
</legend>
<span *ngFor="let tag of tags; let i=index;">
<ng-container *ngTemplateOutlet="tagTpl; context:{index: i, tag: tag}"></ng-container>
Expand Down

0 comments on commit 584a67c

Please sign in to comment.