Skip to content

Commit 03291bc

Browse files
fix: hide chat button when user has no tickets (#8440)
* fix: hide chat button when user has no tickets * fix: hide chat icon until joined event * fix Co-authored-by: Pavnesh Chaturvedi <[email protected]>
1 parent 27b8ddf commit 03291bc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/components/public/stream/chat-panel.hbs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
<div class="ui chat-stream-side-panel-button right">
2-
<i class="rocketchat large icon p-4 chat-panel-icon" {{on "click" @showChatPanel}} role="button"></i>
3-
</div>
41
{{#if @shown}}
52
<div class="d-flex chat-side-panel" style="flex-direction: column-reverse" {{did-insert this.setup}}>
63
<div class="ml-4">

app/components/public/stream/side-panel.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<button {{did-insert this.setup}} class="ui icon button stream-side-panel-button" {{action (mut this.shown) true}}>
22
<i class="angle right icon"></i>
33
</button>
4+
{{#if this.showChat}}
5+
<div class="ui chat-stream-side-panel-button right">
6+
<i class="rocketchat large icon p-4 chat-panel-icon" {{on "click" @showChatPanel}} role="button"></i>
7+
</div>
8+
{{/if}}
49
{{#if this.shown}}
510
<div class="d-flex flex-column stream-side-panel" >
611
<div class="ui header inverted ml-4 mt-4">

0 commit comments

Comments
 (0)