Fix timepicker in checkinrules (#6182)

The timepickers format was changed by accident to the datetimeformat in the vue3 migration
This commit is contained in:
pajowu
2026-05-12 16:17:24 +02:00
committed by GitHub
parent 82450c8250
commit 4861aca640
2 changed files with 7 additions and 2 deletions

View File

@@ -191,3 +191,8 @@ export const DATETIME_OPTIONS = {
close: 'fa fa-remove'
}
}
export const TIME_OPTIONS = {
...DATETIME_OPTIONS,
format: document.body.dataset.timeformat,
}

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref, watch, onMounted, onUnmounted } from 'vue'
import { DATETIME_OPTIONS } from './constants'
import { TIME_OPTIONS } from './constants'
const props = defineProps<{
required?: boolean
@@ -20,7 +20,7 @@ watch(() => props.value, (val) => {
onMounted(() => {
$(input.value)
.datetimepicker({
...DATETIME_OPTIONS,
...TIME_OPTIONS,
showClear: props.required,
})
.trigger('change')