ciyidogan commited on
Commit
ab528ef
·
verified ·
1 Parent(s): b738de5

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
@@ -72,7 +72,9 @@
72
  rows="8"
73
  placeholder='{"key": "value"}'
74
  (click)="saveCursorPosition('body_template', $event)"
75
- (keyup)="saveCursorPosition('body_template', $event)"></textarea>
 
 
76
  <mat-hint>JSON template with template variable support</mat-hint>
77
  @if (!validateJSON('body_template')) {
78
  <mat-error>Invalid JSON format</mat-error>
@@ -316,6 +318,8 @@
316
  <textarea matInput
317
  [(ngModel)]="testRequestJson"
318
  rows="10"
 
 
319
  placeholder="Enter test request JSON here"></textarea>
320
  <mat-hint>Variables will be replaced with test values</mat-hint>
321
  </mat-form-field>
@@ -408,6 +412,8 @@
408
  rows="6"
409
  (click)="saveCursorPosition('auth.token_request_body', $event)"
410
  (keyup)="saveCursorPosition('auth.token_request_body', $event)"
 
 
411
  placeholder='{"username": "api_user", "password": "api_pass"}'></textarea>
412
  <mat-hint>JSON body for token request</mat-hint>
413
  @if (!validateJSON('auth.token_request_body')) {
@@ -467,6 +473,8 @@
467
  rows="4"
468
  (click)="saveCursorPosition('auth.token_refresh_body', $event)"
469
  (keyup)="saveCursorPosition('auth.token_refresh_body', $event)"
 
 
470
  placeholder='{"refresh_token": "your_refresh_token"}'></textarea>
471
  <mat-hint>JSON body for refresh request</mat-hint>
472
  @if (!validateJSON('auth.token_refresh_body')) {
 
72
  rows="8"
73
  placeholder='{"key": "value"}'
74
  (click)="saveCursorPosition('body_template', $event)"
75
+ (keyup)="saveCursorPosition('body_template', $event)"
76
+ (keydown)="handleTabKey($event, 'body_template')"
77
+ class="code-editor"></textarea>
78
  <mat-hint>JSON template with template variable support</mat-hint>
79
  @if (!validateJSON('body_template')) {
80
  <mat-error>Invalid JSON format</mat-error>
 
318
  <textarea matInput
319
  [(ngModel)]="testRequestJson"
320
  rows="10"
321
+ (keydown)="handleTabKey($event, 'testRequestJson')"
322
+ class="code-editor"
323
  placeholder="Enter test request JSON here"></textarea>
324
  <mat-hint>Variables will be replaced with test values</mat-hint>
325
  </mat-form-field>
 
412
  rows="6"
413
  (click)="saveCursorPosition('auth.token_request_body', $event)"
414
  (keyup)="saveCursorPosition('auth.token_request_body', $event)"
415
+ (keydown)="handleTabKey($event, 'auth.token_request_body')"
416
+ class="code-editor"
417
  placeholder='{"username": "api_user", "password": "api_pass"}'></textarea>
418
  <mat-hint>JSON body for token request</mat-hint>
419
  @if (!validateJSON('auth.token_request_body')) {
 
473
  rows="4"
474
  (click)="saveCursorPosition('auth.token_refresh_body', $event)"
475
  (keyup)="saveCursorPosition('auth.token_refresh_body', $event)"
476
+ (keydown)="handleTabKey($event, 'auth.token_refresh_body')"
477
+ class="code-editor"
478
  placeholder='{"refresh_token": "your_refresh_token"}'></textarea>
479
  <mat-hint>JSON body for refresh request</mat-hint>
480
  @if (!validateJSON('auth.token_refresh_body')) {