mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-04 11:10:04 -04:00
add ability to have post-menu in second position
This commit is contained in:
parent
5866f0df18
commit
0deea4f7d4
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue