Skip to content

Commit

Permalink
Fix layout on edit/create cluster when Event Rate plugin is selected (#…
Browse files Browse the repository at this point in the history
…4925)

Signed-off-by: khizerrehan <[email protected]>

Signed-off-by: khizerrehan <[email protected]>
  • Loading branch information
KhizerRehan authored Sep 2, 2022
1 parent dec75f1 commit 2874d2a
Showing 1 changed file with 44 additions and 33 deletions.
77 changes: 44 additions & 33 deletions src/app/shared/components/event-rate-limit/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,39 +23,50 @@
</mat-card-header>
<form fxLayout="row"
fxLayoutGap="8px"
fxLayout.sm="column"
fxLayout.xs="column"
[formGroup]="form">
<mat-form-field class="km-dropdown-with-suffix">
<mat-label>Limit Type</mat-label>
<mat-select [formControlName]="Controls.LimitType"
title="Namespace is the only supported limit type"
class="km-select-ellipsis"
disableOptionCentering>
<mat-option value="Namespace">Namespace</mat-option>
</mat-select>
</mat-form-field>
<km-number-stepper [formControlName]="Controls.QPS"
id="km-event-rate-limit-qps-input"
mode="errors"
label="QPS"
min="1"
step="10"
required>
</km-number-stepper>
<km-number-stepper [formControlName]="Controls.Burst"
id="km-event-rate-limit-burst-input"
mode="errors"
label="Burst"
min="1"
step="10"
required>
</km-number-stepper>
<km-number-stepper [formControlName]="Controls.CacheSize"
id="km-event-rate-limit-cache-size-input"
mode="errors"
label="Cache Size"
step="10"
min="1"
required>
</km-number-stepper>

<div fxFlex
fxLayout="column">
<mat-form-field class="km-dropdown-with-suffix">
<mat-label>Limit Type</mat-label>
<mat-select [formControlName]="Controls.LimitType"
title="Namespace is the only supported limit type"
class="km-select-ellipsis"
disableOptionCentering>
<mat-option value="Namespace">Namespace</mat-option>
</mat-select>
</mat-form-field>
<km-number-stepper [formControlName]="Controls.QPS"
id="km-event-rate-limit-qps-input"
mode="errors"
label="QPS"
min="1"
step="10"
required>
</km-number-stepper>
</div>

<div fxFlex
fxLayout="column">
<km-number-stepper [formControlName]="Controls.Burst"
id="km-event-rate-limit-burst-input"
mode="errors"
label="Burst"
min="1"
step="10"
required>
</km-number-stepper>
<km-number-stepper [formControlName]="Controls.CacheSize"
id="km-event-rate-limit-cache-size-input"
mode="errors"
label="Cache Size"
step="10"
min="1"
required>
</km-number-stepper>
</div>

</form>
</div>

0 comments on commit 2874d2a

Please sign in to comment.