-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Update web ui key slider (#6372)
* Initial commit for update webUI key Signed-off-by: Chaitali Mane <cmane@progress.com> * added unit tests Signed-off-by: Chaitali Mane <cmane@progress.com> * Updated web ui key code Signed-off-by: Chaitali Mane <cmane@progress.com> * Added cypress test cases Signed-off-by: Chaitali Mane <cmane@progress.com> * Updated style changes Signed-off-by: Chaitali Mane <cmane@progress.com> * minor changes Signed-off-by: Chaitali Mane <cmane@progress.com> * Update update error Signed-off-by: Chaitali Mane <cmane@progress.com> * Added image Signed-off-by: Chaitali Mane <cmane@progress.com> * minor change Signed-off-by: Chaitali Mane <cmane@progress.com>
- Loading branch information
1 parent
40f69a2
commit 98bd253
Showing
18 changed files
with
588 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,3 +152,7 @@ | |
font-size: 14px; | ||
letter-spacing: 0.2px; | ||
} | ||
|
||
.textarea-error { | ||
margin-top: -6px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...rc/app/modules/infra-proxy/update-web-uikey-slider/update-web-uikey-slider.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<div ngClass="{slide : isSlideOpen}"> | ||
<div class="sidenav-header"> | ||
<chef-button class="back-button" secondary (click)="closeUpdateModal()" data-cy="back-button"> | ||
<chef-icon>arrow_back</chef-icon> | ||
</chef-button> | ||
<h1 data-cy="title" slot="title">Update Web UI Key</h1> | ||
<chef-button class="close" secondary (click)="closeUpdateModal()"> | ||
<chef-icon>close</chef-icon> | ||
</chef-button> | ||
</div> | ||
<form [formGroup]="updateKeyForm"> | ||
<div class="sidenav-body"> | ||
<div class="id-margin"> | ||
<chef-form-field> | ||
<label> | ||
<span class="Keylabel">Web UI Key <span aria-hidden="true">*</span></span> | ||
<textarea | ||
chefInput | ||
firstFocus | ||
name="webUiKey" | ||
formControlName="webUiKey" | ||
type="text" | ||
autocomplete="off" | ||
(keyup)="handleInput($event)" | ||
data-cy="enter-key"> | ||
</textarea> | ||
</label> | ||
<chef-error class="textarea-error" | ||
*ngIf="updateKeyForm.get('webUiKey').hasError('required') && updateKeyForm.get('webUiKey').dirty"> | ||
WEB UI KEY is required. | ||
</chef-error> | ||
</chef-form-field> | ||
<span class="bottom-note">Note: A web UI Key is located Here (Need Better Help text)</span> | ||
</div> | ||
</div> | ||
<div class="button-bar"> | ||
<chef-button tertiary data-cy="cancel" (click)="closeUpdateModal()">Cancel</chef-button> | ||
<chef-button primary data-cy="Upload" | ||
[disabled]="!updateKeyForm?.valid || conflictError || updating" | ||
id="upload-button-object-modal" | ||
(click)="uploadWebUIKey()"> | ||
<chef-loading-spinner *ngIf="updating"></chef-loading-spinner> | ||
<span *ngIf="!updating">Upload Web UI Key</span> | ||
<span *ngIf="updating">Uploading Web UI Key</span> | ||
</chef-button> | ||
</div> | ||
</form> | ||
</div> |
Oops, something went wrong.