add ability to have post-menu in second position

This commit is contained in:
Steven Slade 2016-04-06 11:05:52 -07:00 committed by Robin Ward
parent 5866f0df18
commit 0deea4f7d4

View File

@ -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);