Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/components/RightSidebar/RightSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,11 @@ export default {
},

handleUpdateActive(active) {
if (active === 'search') {
// 'search' is not a real tab: route it to the search content state
this.handleUpdateState('search')
return
}
this.activeTab = active
},

Expand Down
14 changes: 14 additions & 0 deletions src/components/TopBar/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@
<!-- Upcoming meetings -->
<CalendarEventsDialog v-if="showCalendarEvents" :token="token" />

<!-- Search messages button -->
<NcButton
v-if="!isInCall && !isSidebar && getUserId"
:title="t('spreed', 'Search messages')"
:aria-label="t('spreed', 'Search messages')"
variant="tertiary"
@click="openSidebar('search')">
<template #icon>
<IconMagnify :size="20" />
</template>
</NcButton>

<CallButton v-if="!isInCall" shrinkOnMobile />

<!-- TopBar menu -->
Expand Down Expand Up @@ -156,6 +168,7 @@ import IconAccountMultiplePlusOutline from 'vue-material-design-icons/AccountMul
import IconArrowLeft from 'vue-material-design-icons/ArrowLeft.vue'
import IconChevronRight from 'vue-material-design-icons/ChevronRight.vue'
import IconClockOutline from 'vue-material-design-icons/ClockOutline.vue'
import IconMagnify from 'vue-material-design-icons/Magnify.vue'
import BreakoutRoomsEditor from '../BreakoutRoomsEditor/BreakoutRoomsEditor.vue'
import CalendarEventsDialog from '../CalendarEventsDialog.vue'
import ConversationIcon from '../ConversationIcon.vue'
Expand Down Expand Up @@ -201,6 +214,7 @@ export default {
IconArrowLeft,
IconChevronRight,
IconClockOutline,
IconMagnify,
},

props: {
Expand Down