Show update interval in seconds

This commit is contained in:
Joshua Boniface 2025-03-01 17:21:21 -05:00
parent 65fbbeed0c
commit 52057fa9e4

View File

@ -36,15 +36,14 @@
</div>
<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
type="number"
class="form-control"
id="updateInterval"
v-model="formData.updateInterval"
min="1000"
step="1000"
required
v-model.number="formData.updateInterval"
min="1"
max="3600"
>
</div>
@ -77,7 +76,7 @@ const emit = defineEmits(['update:modelValue', 'save']);
const formData = ref({
apiUri: props.config.apiUri || '',
apiKey: props.config.apiKey || '',
updateInterval: props.config.updateInterval || 5000
updateInterval: props.config.updateInterval / 1000
});
const saveConfig = () => {