mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:13:22 +08:00
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.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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user