Skip to content

Commit

Permalink
chore: change buttons types for toggle buttons (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit authored Nov 16, 2023
1 parent b3d4092 commit 64a130f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ <h1 mat-dialog-title>Create New Asset</h1>
*ngIf="form.datasource.controls.httpProxyMethod; let ctrl"
class="flex flex-row mb-[10px]">
<button
mat-stroked-button
mat-button
[color]="ctrl.value ? 'warn' : 'accent'"
(click)="ctrl.setValue(!ctrl.value)">
{{ ctrl.value ? 'Disable' : 'Enable' }} Method Parameterization
Expand Down Expand Up @@ -256,7 +256,7 @@ <h1 mat-dialog-title>Create New Asset</h1>
*ngIf="form.datasource.controls.httpProxyPath; let ctrl"
class="flex flex-row mb-[10px]">
<button
mat-stroked-button
mat-button
[color]="ctrl.value ? 'warn' : 'accent'"
(click)="ctrl.setValue(!ctrl.value)">
{{ ctrl.value ? 'Disable' : 'Enable' }} Path Parameterization
Expand Down Expand Up @@ -315,7 +315,7 @@ <h1 mat-dialog-title>Create New Asset</h1>
<div class="flex flex-row mb-[10px] space-x-[10px]">
<!-- Add Query Param Button -->
<button
mat-stroked-button
mat-button
color="accent"
(click)="form.onHttpQueryParamsAddClick()">
Add {{ form.proxyQueryParams ? 'Default' : '' }} Query Param
Expand All @@ -324,7 +324,7 @@ <h1 mat-dialog-title>Create New Asset</h1>
<!-- Toggle Proxy Query Param Parameterization Button -->
<button
*ngIf="form.datasource.controls.httpProxyQueryParams; let ctrl"
mat-stroked-button
mat-button
[color]="ctrl.value ? 'warn' : 'accent'"
(click)="ctrl.setValue(!ctrl.value)">
{{ ctrl.value ? 'Disable' : 'Enable' }} Query Param
Expand All @@ -344,7 +344,7 @@ <h1 mat-dialog-title>Create New Asset</h1>
*ngIf="form.datasource.controls.httpProxyBody; let ctrl"
class="flex flex-row mb-[10px]">
<button
mat-stroked-button
mat-button
[color]="ctrl.value ? 'warn' : 'accent'"
(click)="ctrl.setValue(!ctrl.value)">
{{ ctrl.value ? 'Disable' : 'Enable' }} Request Body
Expand All @@ -361,7 +361,7 @@ <h1 mat-dialog-title>Create New Asset</h1>
"
class="flex flex-row mb-[10px]">
<button
mat-stroked-button
mat-button
color="accent"
(click)="
form.datasource.controls.httpAuthHeaderType.setValue(
Expand Down Expand Up @@ -441,7 +441,7 @@ <h1 mat-dialog-title>Create New Asset</h1>
"
class="flex flex-row mb-[10px]">
<button
mat-stroked-button
mat-button
color="warn"
(click)="
form.datasource.controls.httpAuthHeaderType.setValue('None')
Expand Down Expand Up @@ -491,7 +491,7 @@ <h1 mat-dialog-title>Create New Asset</h1>
<!-- Add Header Button -->
<div class="flex flex-row mb-[10px]">
<button
mat-stroked-button
mat-button
color="accent"
(click)="form.onHttpHeadersAddClick()">
Add Additional Header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h1 mat-dialog-title>Initiate Transfer</h1>
*ngIf="form.all.controls.httpAuthHeaderType.value === 'None'"
class="flex flex-row mb-[10px]">
<button
mat-stroked-button
mat-button
color="accent"
(click)="
form.all.controls.httpAuthHeaderType.setValue('Vault-Secret')
Expand Down Expand Up @@ -194,7 +194,7 @@ <h1 mat-dialog-title>Initiate Transfer</h1>
<!-- Add Header Button -->
<div class="flex flex-row mb-[10px]">
<button
mat-stroked-button
mat-button
color="accent"
(click)="form.onHttpHeadersAddClick()">
Add Additional Header
Expand Down Expand Up @@ -302,7 +302,7 @@ <h1 mat-dialog-title>Initiate Transfer</h1>
<div class="flex flex-row mb-[10px] space-x-[10px]">
<!-- Add Query Param Button -->
<button
mat-stroked-button
mat-button
color="accent"
(click)="form.onHttpQueryParamsAddClick()">
Add Custom Query Param
Expand Down Expand Up @@ -343,7 +343,7 @@ <h1 mat-dialog-title>Initiate Transfer</h1>
"
class="flex flex-row mb-[10px]">
<button
mat-stroked-button
mat-button
[color]="ctrl.value ? 'warn' : 'accent'"
(click)="ctrl.setValue(!ctrl.value)">
{{ ctrl.value ? 'Hide' : 'Show' }} Http Datasource Parameterization
Expand Down

0 comments on commit 64a130f

Please sign in to comment.