Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
b9f69d6893
1 changed files with 14 additions and 10 deletions
|
@ -84,7 +84,10 @@ const TagPanel = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onMouseDown(e) {
|
onMouseDown(e) {
|
||||||
dis.dispatch({action: 'deselect_tags'});
|
// only dispatch if its not a no-op
|
||||||
|
if (this.state.selectedTags.length > 0) {
|
||||||
|
dis.dispatch({action: 'deselect_tags'});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onCreateGroupClick(ev) {
|
onCreateGroupClick(ev) {
|
||||||
|
@ -113,17 +116,18 @@ const TagPanel = React.createClass({
|
||||||
/>;
|
/>;
|
||||||
});
|
});
|
||||||
|
|
||||||
const clearButton = this.state.selectedTags.length > 0 ?
|
let clearButton;
|
||||||
<TintableSvg src="img/icons-close.svg" width="24" height="24"
|
if (this.state.selectedTags.length > 0) {
|
||||||
alt={_t("Clear filter")}
|
clearButton = <AccessibleButton className="mx_TagPanel_clearButton" onClick={this.onClearFilterClick}>
|
||||||
title={_t("Clear filter")}
|
<TintableSvg src="img/icons-close.svg" width="24" height="24"
|
||||||
/> :
|
alt={_t("Clear filter")}
|
||||||
<div />;
|
title={_t("Clear filter")}
|
||||||
|
/>
|
||||||
|
</AccessibleButton>;
|
||||||
|
}
|
||||||
|
|
||||||
return <div className="mx_TagPanel">
|
return <div className="mx_TagPanel">
|
||||||
<AccessibleButton className="mx_TagPanel_clearButton" onClick={this.onClearFilterClick}>
|
{ clearButton }
|
||||||
{ clearButton }
|
|
||||||
</AccessibleButton>
|
|
||||||
<div className="mx_TagPanel_divider" />
|
<div className="mx_TagPanel_divider" />
|
||||||
<GeminiScrollbarWrapper
|
<GeminiScrollbarWrapper
|
||||||
className="mx_TagPanel_scroller"
|
className="mx_TagPanel_scroller"
|
||||||
|
|
Loading…
Reference in a new issue