Hiding context menu when clearing queue

This commit is contained in:
James Barnsley
2018-05-09 17:31:38 +12:00
parent b47d66f641
commit d5108822a6
4 changed files with 4 additions and 4 deletions

View File

@ -67150,7 +67150,7 @@ var Queue = function (_React$Component) {
_react2.default.createElement(
'button',
{ className: 'no-hover', onClick: function onClick(e) {
return _this2.props.mopidyActions.clearTracklist();
_this2.props.mopidyActions.clearTracklist();_this2.props.uiActions.hideContextMenu();
} },
_react2.default.createElement(_reactFontawesome2.default, { name: 'trash' }),
'\xA0 Clear'

File diff suppressed because one or more lines are too long

View File

@ -77,7 +77,7 @@
// Release details
// These are automatically injected to built HTML
var build = "1525811194";
var build = "1525833604";
var version = "3.18.0";
// Construct the script tag

View File

@ -149,7 +149,7 @@ class Queue extends React.Component{
<FontAwesome name="history" />&nbsp;
History
</button>
<button className="no-hover" onClick={e => this.props.mopidyActions.clearTracklist()}>
<button className="no-hover" onClick={e => {this.props.mopidyActions.clearTracklist(); this.props.uiActions.hideContextMenu();}}>
<FontAwesome name="trash" />&nbsp;
Clear
</button>