mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Fix button "Run query" width (#32655) * Minor refactoring for simpler fix * Removed new prop Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
committed by
GitHub
parent
0da6ac2efa
commit
e4cc41dd5b
@@ -54,7 +54,7 @@ export class RefreshPicker extends PureComponent<Props> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { onRefresh, intervals, tooltip, value, text, isLoading, noIntervalPicker } = this.props;
|
||||
const { onRefresh, intervals, tooltip, value, text, isLoading, noIntervalPicker, width } = this.props;
|
||||
|
||||
const currentValue = value || '';
|
||||
const variant = this.getVariant();
|
||||
@@ -73,6 +73,7 @@ export class RefreshPicker extends PureComponent<Props> {
|
||||
onClick={onRefresh}
|
||||
variant={variant}
|
||||
icon={isLoading ? 'fa fa-spinner' : 'sync'}
|
||||
style={width ? { width } : undefined}
|
||||
data-testid={selectors.components.RefreshPicker.runButtonV2}
|
||||
>
|
||||
{text}
|
||||
|
||||
Reference in New Issue
Block a user