Skip to content

Commit

Permalink
[17.0][FIX] mail_activity_board: hide button if has no activities
Browse files Browse the repository at this point in the history
  • Loading branch information
astirpe committed Oct 13, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
weihanglo Weihang Lo
1 parent 1a2633b commit 4bdfe29
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions mail_activity_board/static/src/components/chatter/chatter.xml
Original file line number Diff line number Diff line change
@@ -6,14 +6,16 @@
t-inherit-mode="extension"
>
<xpath expr="//button[hasclass('o-mail-Chatter-activity')]" position="after">
<button
class="btn btn-link o_ChatterTopbar_button"
type="button"
t-att-disabled="!state.thread.hasWriteAccess"
t-on-click="_onListActivity"
>
<i class="fa fa-list" /> View Activities
</button>
<t t-if="props.hasActivities">
<button
class="btn btn-link o_ChatterTopbar_button"
type="button"
t-att-disabled="!state.thread.hasWriteAccess"
t-on-click="_onListActivity"
>
<i class="fa fa-list" /> View Activities
</button>
</t>
</xpath>
</t>
</templates>

0 comments on commit 4bdfe29

Please sign in to comment.