[IMP] mail: Move the attachment icon on the left
This is much better.
This commit is contained in:
committed by
Yannick Tivisse
parent
a4f33b5bf5
commit
9cd3bcd440
@@ -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>'));
|
||||
|
||||
@@ -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>
|
||||
|
||||
<!--
|
||||
|
||||
Reference in New Issue
Block a user