diff --git a/addons/mail/static/src/discuss/discuss.js b/addons/mail/static/src/discuss/discuss.js index fa9edd09218..292488de05a 100644 --- a/addons/mail/static/src/discuss/discuss.js +++ b/addons/mail/static/src/discuss/discuss.js @@ -59,10 +59,10 @@ export class Discuss extends Component { this.contentRef = useRef("content"); this.popover = usePopover(); this.closePopover = null; - this.settingsRef = useRef("settings"); this.addUsersRef = useRef("addUsers"); this.state = useState({ activeMode: this.MODES.NONE, + isAddingUsers: false, }); this.orm = useService("orm"); this.effect = useService("effect"); @@ -104,11 +104,17 @@ export class Discuss extends Component { this.closePopover = null; } else { const el = this.addUsersRef.el; + this.state.isAddingUsers = true; this.closePopover = this.popover.add( el, ChannelInvitation, { thread: this.thread }, - { onClose: () => (this.closePopover = null) } + { + onClose: () => { + this.state.isAddingUsers = false; + this.closePopover = null; + }, + } ); } } diff --git a/addons/mail/static/src/discuss/discuss.scss b/addons/mail/static/src/discuss/discuss.scss index 4d89454fcf4..4d3ed838a27 100644 --- a/addons/mail/static/src/discuss/discuss.scss +++ b/addons/mail/static/src/discuss/discuss.scss @@ -24,3 +24,15 @@ .o-mail-Discuss-threadName { max-width: 75%; } + +.o-mail-Discuss-header button { + &:not(.o-isActive):hover { + background-color: $gray-300; + } + &.o-isActive { + background-color: $gray-300; + } + &.o-isActive:hover { + background-color: $gray-400; + } +} diff --git a/addons/mail/static/src/discuss/discuss.xml b/addons/mail/static/src/discuss/discuss.xml index 78e60b094a4..6e0d0faf674 100644 --- a/addons/mail/static/src/discuss/discuss.xml +++ b/addons/mail/static/src/discuss/discuss.xml @@ -25,19 +25,19 @@ /> -
+
- - - -