Show update interval in seconds
This commit is contained in:
parent
65fbbeed0c
commit
52057fa9e4
@ -36,15 +36,14 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="updateInterval" class="form-label">Update Interval (ms)</label>
|
<label for="updateInterval" class="form-label">Update Interval (seconds)</label>
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="updateInterval"
|
id="updateInterval"
|
||||||
v-model="formData.updateInterval"
|
v-model.number="formData.updateInterval"
|
||||||
min="1000"
|
min="1"
|
||||||
step="1000"
|
max="3600"
|
||||||
required
|
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -77,7 +76,7 @@ const emit = defineEmits(['update:modelValue', 'save']);
|
|||||||
const formData = ref({
|
const formData = ref({
|
||||||
apiUri: props.config.apiUri || '',
|
apiUri: props.config.apiUri || '',
|
||||||
apiKey: props.config.apiKey || '',
|
apiKey: props.config.apiKey || '',
|
||||||
updateInterval: props.config.updateInterval || 5000
|
updateInterval: props.config.updateInterval / 1000
|
||||||
});
|
});
|
||||||
|
|
||||||
const saveConfig = () => {
|
const saveConfig = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user