FIX: discourse-solved plugin controls (buttons) should be in first place

This commit is contained in:
Arpit Jalan 2018-03-31 07:42:54 +05:30
parent 9815f301cc
commit 9df7fd4f30
1 changed files with 5 additions and 5 deletions

View File

@ -317,6 +317,11 @@ export default createWidget('post-menu', {
visibleButtons.splice(visibleButtons.length - 1, 0, showMore);
}
visibleButtons.unshift(h('div.like-button', [
this.attachButton("like-count", attrs),
this.attachButton("like", attrs)
]));
Object.keys(_extraButtons).forEach(k => {
const builder = _extraButtons[k];
if (builder) {
@ -353,11 +358,6 @@ export default createWidget('post-menu', {
}
});
visibleButtons.unshift(h('div.like-button', [
this.attachButton("like-count", attrs),
this.attachButton("like", attrs)
]));
const postControls = [];
const repliesButton = this.attachButton('replies', attrs);