Skip to content

Commit 811876c

Browse files
Open conversation settings upon clicking on header
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
1 parent c03bf45 commit 811876c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/components/TopBar/TopBar.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
<template>
2323
<div class="top-bar" :class="{ 'in-call': isInCall }">
2424
<!-- conversation header -->
25-
<div class="conversation-header">
25+
<a
26+
class="conversation-header"
27+
@click="openConversationSettings">
2628
<ConversationIcon
2729
:item="conversation"
2830
:hide-favorite="false"
@@ -35,7 +37,7 @@
3537
{{ conversation.description }}
3638
</p>
3739
</div>
38-
</div>
40+
</a>
3941
<div class="top-bar__buttons">
4042
<CallButton class="top-bar__button" />
4143
<!-- Call layout switcher -->
@@ -343,6 +345,10 @@ export default {
343345
callParticipantModel.forceMute()
344346
})
345347
},
348+
349+
openConversationSettings() {
350+
emit('show-conversation-settings')
351+
},
346352
},
347353
}
348354
</script>
@@ -392,12 +398,14 @@ export default {
392398
}
393399
394400
.conversation-header {
401+
position: relative;
395402
display: flex;
396403
overflow-x: hidden;
397404
overflow-y: clip;
398405
margin-left: 48px;
399406
white-space: nowrap;
400407
width: 100%;
408+
cursor: pointer;
401409
&__text {
402410
display: flex;
403411
flex-direction:column;

src/store/sidebarStore.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('sidebarStore', () => {
2020
})
2121

2222
test('defaults are off', () => {
23-
expect(store.getters.getSidebarStatus).toBe(false)
23+
expect(store.getters.getSidebarStatus).toBe(true)
2424
expect(store.getters.isRenamingConversation).toBe(false)
2525
})
2626

0 commit comments

Comments
 (0)