mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 16:28:31 +00:00
Update the nuxt3 version. Co-authored-by: Jonathan Adeline <jonathan@baserow.io> Co-authored-by: Bram Wiepjes <bramw@protonmail.com> Co-authored-by: Cezary <cezary@baserow.io> Co-authored-by: Tsering Paljor <tsering@baserow.io> Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io> Co-authored-by: Bram <bram2w@users.noreply.github.com>
52 lines
1.1 KiB
Vue
52 lines
1.1 KiB
Vue
<template>
|
|
<li class="tree__item">
|
|
<div class="tree__action sidebar__action sidebar__search">
|
|
<div class="sidebar__search-input" @click="openWorkspaceSearch">
|
|
<i class="sidebar__search-icon iconoir-search"></i>
|
|
<span class="sidebar__search-placeholder">
|
|
{{ $t('workspaceSearch.searchEverything') }}
|
|
</span>
|
|
<ClientOnly>
|
|
<div class="sidebar__search-shortcut">
|
|
<kbd>{{ modifierKey }}</kbd
|
|
><kbd>K</kbd>
|
|
</div>
|
|
<template #fallback>
|
|
<div class="sidebar__search-shortcut">
|
|
<kbd>Ctrl</kbd><kbd>K</kbd>
|
|
</div>
|
|
</template>
|
|
</ClientOnly>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</template>
|
|
|
|
<script>
|
|
import { isMac } from '@baserow/modules/core/utils/events'
|
|
|
|
export default {
|
|
name: 'SidebarSearch',
|
|
props: {
|
|
selectedWorkspace: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
},
|
|
|
|
emits: ['open-workspace-search'],
|
|
|
|
computed: {
|
|
modifierKey() {
|
|
return isMac() ? '⌘' : 'Ctrl'
|
|
},
|
|
},
|
|
|
|
methods: {
|
|
openWorkspaceSearch() {
|
|
this.$emit('open-workspace-search')
|
|
},
|
|
},
|
|
}
|
|
</script>
|