Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Unify action components of all field analyzers
Browse files Browse the repository at this point in the history
This commit is a part of Graylog2/graylog2-server#4219, where the other field analyzer widgets were adressed.

This change unifies the action components (buttons and dropdowns) of all field analyzer widgets we ship. Those components are found in the top right corner of each widget.

* The "Dismiss Widget" button is now always a close icon and on the far right of all actions. Before it was sometimes directly accessible and sometimes hidden behind a "Customize" drop-down. The change to a close _icon_ makes it stand out more and also saves real-estate. A margin to the left helps identifying it quickly and avoids accidental pressing of it.
* The "Add to dashboard" button has the same and less intrusive button across all widgets now.
* The new Quick Values configuration dialog is accessible directly without going through the "Customize" drop-down. In fact, the "Customize" drop-down only had "Customize" as a menu item after "Dismiss" was moved to the new close widget icon.
  • Loading branch information
Lennart Koopmann committed Oct 7, 2017
1 parent 770453e commit 6ad8b5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/components/FieldAnalyzerMapComponent.jsx
Expand Up @@ -123,10 +123,10 @@ const FieldAnalyzerMapComponent = React.createClass({
<AddToDashboardMenu title="Add to dashboard"
widgetType={this.WIDGET_TYPE}
configuration={{field: this.state.field}}
bsStyle="default"
pullRight
permissions={this.props.permissions}>
<Button bsSize="small" onClick={() => this._resetStatus()}>Dismiss</Button>

<Button bsSize="small" className="field-analyzer-close" onClick={() => this._resetStatus()}><i className="fa fa-close" /></Button>
</AddToDashboardMenu>
</div>
<h1>Map for field: {this.state.field}</h1>
Expand Down

0 comments on commit 6ad8b5a

Please sign in to comment.