Skip to content

Commit f40056d

Browse files
authored
fix(queue-details): show current global values when updating (#690)
1 parent 181f955 commit f40056d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/server/views/dashboard/templates/queueDetails.hbs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@
107107
<label for="queue-concurrency-input-search" class="col-sm-8 col-form-label">Concurrency</label>
108108
<div class="col-sm-4">
109109
<input type="number" class="js-update-meta-concurrency form-control input-sm" style="margin-right: 10px;"
110+
{{#if (isNumber globalConfig.concurrency)}}
111+
value={{ globalConfig.concurrency }}
112+
{{/if}}
110113
placeholder="Concurrency"
111114
>
112115
</div>
@@ -115,6 +118,9 @@
115118
<label for="queue-rl-max-input-search" class="col-sm-8 col-form-label">Rate Limit Max</label>
116119
<div class="col-sm-4">
117120
<input type="number" class="js-update-meta-rl-max form-control input-sm" style="margin-right: 10px;"
121+
{{#if (isNumber globalConfig.max)}}
122+
value={{ globalConfig.max }}
123+
{{/if}}
118124
placeholder="Max"
119125
>
120126
</div>
@@ -123,7 +129,10 @@
123129
<label for="queue-rl-duration-input-search" class="col-sm-8 col-form-label">Rate Limit Duration</label>
124130
<div class="col-sm-4">
125131
<input type="number" class="js-update-meta-rl-duration form-control input-sm" style="margin-right: 10px;"
126-
placeholder="Duration"
132+
{{#if (isNumber globalConfig.duration)}}
133+
value={{ globalConfig.duration }}
134+
{{/if}}
135+
placeholder="Duration in ms"
127136
>
128137
</div>
129138
</div>

0 commit comments

Comments
 (0)