Spaces:
Running
Running
Update flare-ui/src/app/dialogs/api-edit-dialog/api-edit-dialog.component.html
Browse files
flare-ui/src/app/dialogs/api-edit-dialog/api-edit-dialog.component.html
CHANGED
@@ -62,7 +62,10 @@
|
|
62 |
</mat-form-field>
|
63 |
</div>
|
64 |
|
65 |
-
<mat-form-field appearance="outline"
|
|
|
|
|
|
|
66 |
<mat-label>Body Template</mat-label>
|
67 |
<textarea matInput
|
68 |
[formControl]="$any(form.get('body_template'))"
|
@@ -385,7 +388,10 @@
|
|
385 |
}
|
386 |
</mat-form-field>
|
387 |
|
388 |
-
<mat-form-field appearance="outline"
|
|
|
|
|
|
|
389 |
<mat-label>Token Request Body</mat-label>
|
390 |
<textarea matInput
|
391 |
formControlName="token_request_body"
|
@@ -431,7 +437,10 @@
|
|
431 |
<mat-hint>URL to refresh expired token</mat-hint>
|
432 |
</mat-form-field>
|
433 |
|
434 |
-
<mat-form-field appearance="outline"
|
|
|
|
|
|
|
435 |
<mat-label>Refresh Request Body</mat-label>
|
436 |
<textarea matInput
|
437 |
formControlName="token_refresh_body"
|
|
|
62 |
</mat-form-field>
|
63 |
</div>
|
64 |
|
65 |
+
<mat-form-field appearance="outline"
|
66 |
+
class="full-width"
|
67 |
+
[class.json-valid]="validateJSON('body_template')"
|
68 |
+
[class.json-invalid]="!validateJSON('body_template') && form.get('body_template')?.value">
|
69 |
<mat-label>Body Template</mat-label>
|
70 |
<textarea matInput
|
71 |
[formControl]="$any(form.get('body_template'))"
|
|
|
388 |
}
|
389 |
</mat-form-field>
|
390 |
|
391 |
+
<mat-form-field appearance="outline"
|
392 |
+
class="full-width"
|
393 |
+
[class.json-valid]="validateJSON('auth.token_request_body')"
|
394 |
+
[class.json-invalid]="!validateJSON('auth.token_request_body') && form.get('auth.token_request_body')?.value">
|
395 |
<mat-label>Token Request Body</mat-label>
|
396 |
<textarea matInput
|
397 |
formControlName="token_request_body"
|
|
|
437 |
<mat-hint>URL to refresh expired token</mat-hint>
|
438 |
</mat-form-field>
|
439 |
|
440 |
+
<mat-form-field appearance="outline"
|
441 |
+
class="full-width"
|
442 |
+
[class.json-valid]="validateJSON('auth.token_refresh_body')"
|
443 |
+
[class.json-invalid]="!validateJSON('auth.token_refresh_body') && form.get('auth.token_refresh_body')?.value">
|
444 |
<mat-label>Refresh Request Body</mat-label>
|
445 |
<textarea matInput
|
446 |
formControlName="token_refresh_body"
|