mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:43:54 -06:00
add ability to have post-menu in second position
This commit is contained in:
parent
5866f0df18
commit
0deea4f7d4
@ -251,6 +251,9 @@ export default createWidget('post-menu', {
|
||||
case 'first':
|
||||
visibleButtons.unshift(button);
|
||||
break;
|
||||
case 'second':
|
||||
visibleButtons.splice(1, 0, button);
|
||||
break;
|
||||
case 'second-last-hidden':
|
||||
if (!state.collapsed) {
|
||||
visibleButtons.splice(visibleButtons.length-2, 0, button);
|
||||
|
Loading…
Reference in New Issue
Block a user