Files
redash/client/app/components/ParameterValueInput.less
Gabriel Dutra c76955be28 Refresh query when parameters update (#3737)
* Add touch state to parameters and autoupdate query

* Use values change event instead of $watch

* Remove getQueryResultDebounced

* Add Apply button

* Remove Input Number spinners for Parameters

* Make Apply Button optional

* Update share_embed_spec

* Change debounce to the Parameters component

* Remove unnecessary click on Execute query

* Add apply button to the remaining places

* Update dashboard_spec

* Use onKeyUp for InputNumber

* Simplify onParametersValuesChanged

* Update DateTime onChange function

* Don't apply when modifier key is pressed

* Remove refresh Button from Parameters

* Update apply button styling

* Update apply right distance

* Remove debounce for testing

* Use data-dirty instead of classNames for styling

* Make sure $apply runs before calling onChange
2019-05-15 08:57:06 +03:00

51 lines
913 B
Plaintext

@import '~antd/lib/input-number/style/index'; // for ant @vars
.parameter-input {
display: inline-block;
position: relative;
width: 195px;
&[data-dirty] {
.@{ant-prefix}-input {
padding-right: 58px !important;
}
}
.parameter-apply-button {
position: absolute !important;
height: 25px !important;
width: 50px;
top: 5px;
right: 5px;
}
}
.parameter-input-number {
display: inline-block;
position: relative;
width: 195px;
.@{ant-prefix}-input-number {
width: 100% !important;
}
&[data-dirty] {
.@{ant-prefix}-input-number {
padding-right: 68px !important;
}
}
// Make Input Number spinners always visible
.@{input-number-prefix-cls}-handler-wrap {
opacity: 1 !important;
}
.parameter-apply-button {
position: absolute !important;
height: 25px !important;
width: 50px;
top: 5px;
right: 27px;
}
}