[IMP] mail: Move the attachment icon on the left

This is much better.
This commit is contained in:
RomainLibert
2019-07-05 13:03:18 +02:00
committed by Yannick Tivisse
parent a4f33b5bf5
commit 9cd3bcd440
2 changed files with 9 additions and 7 deletions
+3 -6
View File
@@ -89,18 +89,15 @@ var Chatter = Widget.extend({
*/
start: function () {
this._$topbar = this.$('.o_chatter_topbar');
if(!this._disableAttachmentBox) {
this.$('.o_topbar_right_area').append(QWeb.render('mail.chatter.Attachment.Button', {
displayCounter: !!this.fields.thread,
count: this.record.data.message_attachment_count || 0,
}));
}
// render and append the buttons
this._$topbar.prepend(QWeb.render('mail.chatter.Buttons', {
newMessageButton: !!this.fields.thread,
logNoteButton: this.hasLogButton,
scheduleActivityButton: !!this.fields.activity,
isMobile: config.device.isMobile,
disableAttachmentBox: this._disableAttachmentBox,
displayCounter: !!this.fields.thread,
count: this.record.data.message_attachment_count || 0,
}));
// start and append the widgets
var fieldDefs = _.invoke(this.fields, 'appendTo', $('<div>'));
+6 -1
View File
@@ -110,7 +110,12 @@
<button t-if="scheduleActivityButton" class="btn btn-link o_chatter_button_schedule_activity" title="Log or schedule an activity" disabled="disabled">
<i class="fa fa-clock-o" role="img" aria-label="Dates" title="Dates"/> <t t-if="isMobile">Activity</t><t t-else="">Schedule activity</t>
</button>
<t t-if="!disableAttachmentBox">
<t t-call="mail.chatter.Attachment.Button">
<t t-set="displayCounter" t-value="displayCounter"/>
<t t-set="count" t-value="count"/>
</t>
</t>
</t>
<!--