Hiding context menu when clearing queue
This commit is contained in:
@ -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
@ -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
|
||||
|
||||
@ -149,7 +149,7 @@ class Queue extends React.Component{
|
||||
<FontAwesome name="history" />
|
||||
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" />
|
||||
Clear
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user