FIX: discourse-solved plugin controls (buttons) should be in first place
This commit is contained in:
parent
9815f301cc
commit
9df7fd4f30
|
@ -317,6 +317,11 @@ export default createWidget('post-menu', {
|
||||||
visibleButtons.splice(visibleButtons.length - 1, 0, showMore);
|
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 => {
|
Object.keys(_extraButtons).forEach(k => {
|
||||||
const builder = _extraButtons[k];
|
const builder = _extraButtons[k];
|
||||||
if (builder) {
|
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 postControls = [];
|
||||||
|
|
||||||
const repliesButton = this.attachButton('replies', attrs);
|
const repliesButton = this.attachButton('replies', attrs);
|
||||||
|
|
Loading…
Reference in New Issue