Display period setting of the RateLimit middleware in the webui

This commit is contained in:
Mátyás Somfai 2023-04-04 18:12:06 +02:00 committed by GitHub
parent 5f514b0d16
commit 4c9765b52d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -723,7 +723,7 @@
</div> </div>
</q-card-section> </q-card-section>
<!-- EXTRA FIELDS FROM MIDDLEWARES - [rateLimit] - average && burst--> <!-- EXTRA FIELDS FROM MIDDLEWARES - [rateLimit] - average & burst & period -->
<q-card-section v-if="middleware.rateLimit"> <q-card-section v-if="middleware.rateLimit">
<div class="row items-start no-wrap"> <div class="row items-start no-wrap">
<div class="col"> <div class="col">
@ -742,6 +742,14 @@
{{ exData(middleware).burst }} {{ exData(middleware).burst }}
</q-chip> </q-chip>
</div> </div>
<div class="col">
<div class="text-subtitle2">Period</div>
<q-chip
dense
class="app-chip app-chip-green">
{{ exData(middleware).period }}
</q-chip>
</div>
</div> </div>
</q-card-section> </q-card-section>