Merge pull request #1350 from frappe/tz-autocomplete
feat: timezone autocomplete in live class & misc fixes
This commit is contained in:
@@ -130,7 +130,7 @@ import {
|
|||||||
ComboboxOptions,
|
ComboboxOptions,
|
||||||
ComboboxOption,
|
ComboboxOption,
|
||||||
} from '@headlessui/vue'
|
} from '@headlessui/vue'
|
||||||
import { Popover, Button } from 'frappe-ui'
|
import { Popover } from 'frappe-ui'
|
||||||
import { ChevronDown, X } from 'lucide-vue-next'
|
import { ChevronDown, X } from 'lucide-vue-next'
|
||||||
import { ref, computed, useAttrs, useSlots, watch, nextTick } from 'vue'
|
import { ref, computed, useAttrs, useSlots, watch, nextTick } from 'vue'
|
||||||
|
|
||||||
|
|||||||
@@ -39,13 +39,19 @@
|
|||||||
:required="true"
|
:required="true"
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<FormControl
|
|
||||||
v-model="liveClass.timezone"
|
<div class="space-y-1.5">
|
||||||
type="select"
|
<label class="block text-ink-gray-5 text-xs" for="batchTimezone">
|
||||||
:options="getTimezoneOptions()"
|
{{ __('Timezone') }}
|
||||||
:label="__('Timezone')"
|
<span class="text-ink-red-3">*</span>
|
||||||
:required="true"
|
</label>
|
||||||
/>
|
<Autocomplete
|
||||||
|
@update:modelValue="(opt) => (liveClass.timezone = opt.value)"
|
||||||
|
:modelValue="liveClass.timezone"
|
||||||
|
:options="getTimezoneOptions()"
|
||||||
|
:required="true"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<FormControl
|
<FormControl
|
||||||
@@ -83,18 +89,14 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import {
|
import {
|
||||||
Input,
|
|
||||||
DatePicker,
|
|
||||||
Select,
|
|
||||||
Textarea,
|
|
||||||
Dialog,
|
Dialog,
|
||||||
createResource,
|
createResource,
|
||||||
Tooltip,
|
Tooltip,
|
||||||
FormControl,
|
FormControl,
|
||||||
|
Autocomplete,
|
||||||
} from 'frappe-ui'
|
} from 'frappe-ui'
|
||||||
import { reactive, inject } from 'vue'
|
import { reactive, inject } from 'vue'
|
||||||
import { getTimezones, createToast } from '@/utils/'
|
import { getTimezones, createToast } from '@/utils/'
|
||||||
import { Info } from 'lucide-vue-next'
|
|
||||||
|
|
||||||
const liveClasses = defineModel('reloadLiveClasses')
|
const liveClasses = defineModel('reloadLiveClasses')
|
||||||
const show = defineModel()
|
const show = defineModel()
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ const isStudent = computed(() => {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
const tabIndex = useRouteQuery('tab', 0)
|
const tabIndex = useRouteQuery('tab', 0, { transform: Number })
|
||||||
const tabs = computed(() => {
|
const tabs = computed(() => {
|
||||||
let batchTabs = []
|
let batchTabs = []
|
||||||
batchTabs.push({
|
batchTabs.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user