Skip to content

Commit 596d27d

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

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.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222

2323
const state = {
24-
show: true,
24+
show: false,
2525
isRenamingConversation: false,
2626
sidebarOpenBeforeEditing: null,
2727

0 commit comments

Comments
 (0)