Added search CTA to sidebar

This commit is contained in:
Alexis
2024-04-29 23:21:50 +02:00
parent 5adc7db425
commit 1893cd3400
6 changed files with 63 additions and 22 deletions

View File

@@ -388,6 +388,12 @@ export const useCalendar = defineStore('calendar', () => {
selectedDate.value = date
}
const isAdvancedSearchOpen: Ref<boolean> = ref<boolean>(false)
function revealAdvancedSearch() {
isAdvancedSearchOpen.value = true
}
return {
staticConfig,
viewTypeOptions,
@@ -413,6 +419,8 @@ export const useCalendar = defineStore('calendar', () => {
getMonthName,
setViewType,
getViewTypeTitle,
isCurrentScreenActive
isCurrentScreenActive,
isAdvancedSearchOpen,
revealAdvancedSearch
}
})