Skip to content

Commit d6f5c13

Browse files
committed
Fixed typo in the panel's input field
1 parent 6ba7fe9 commit d6f5c13

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/firefly/js/templates/lightcurve/LcPhaseFoldingPanel.jsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function getDialogBuilder() {
3232
if (!popup) {
3333
const popup= (
3434
<PopupPanel title={'Light Curve'} >
35-
<LCInput groupKey={'LC_FORM'} />
35+
<LCInput groupKey={'LC_FORM_Panel'} />
3636
</PopupPanel>
3737
);
3838
DialogRootContainer.defineDialog('LcParamForm', popup);
@@ -148,7 +148,7 @@ export class LcParamForm extends Component {
148148

149149
constructor(props) {
150150
super(props);
151-
this.state = {fields:FieldGroupUtils.getGroupFields('LC_FORM')};
151+
this.state = {fields:FieldGroupUtils.getGroupFields('LC_FORM_Panel')};
152152
}
153153

154154
componentWillUnmount() {
@@ -159,7 +159,7 @@ export class LcParamForm extends Component {
159159

160160
componentDidMount() {
161161
this.iAmMounted= true;
162-
this.unbinder= FieldGroupUtils.bindToStore('LC_FORM', (fields) => {
162+
this.unbinder= FieldGroupUtils.bindToStore('LC_FORM_Panel', (fields) => {
163163
if (fields!==this.state.fields && this.iAmMounted) {
164164
this.setState({fields});
165165
}
@@ -190,7 +190,7 @@ export function LcPFOptionsPanel ({fields}) {
190190

191191
return (
192192

193-
<FieldGroup style= {PanelResizableStyle} groupKey={'LC_FORM'} initValues={{timeCol:'mjd1',field1:'4'}}
193+
<FieldGroup style= {PanelResizableStyle} groupKey={'LC_FORM_Panel'} initValues={{timeCol:'mjd1',field1:'4'}}
194194
reducerFunc={DialogReducer} keepState={true}>
195195
<InputGroup labelWidth={110}>
196196

@@ -223,9 +223,9 @@ export function LcPFOptionsPanel ({fields}) {
223223
forceReinit={true}
224224
initialState= {{
225225
fieldKey: 'flux',
226-
value: '',
227-
validator: Validate.floatRange.bind(null, 0.55555, 1.22222, 3,'Flux Column'),
228-
tooltip: 'Flux Column',
226+
value: '2.0',
227+
validator: Validate.floatRange.bind(null, 2.0, 5.5, 3,'Flux Column'),
228+
tooltip: 'Flux Column, value between 2.0 to 5.5',
229229
label : 'Flux Column:',
230230
labelWidth : 100
231231
}} />
@@ -235,10 +235,10 @@ export function LcPFOptionsPanel ({fields}) {
235235
<ValidationField fieldKey='fluxerror'
236236
forceReinit={true}
237237
initialState= {{
238-
fieldKey: 'fluxerrorl',
239-
value: '',
240-
validator: Validate.floatRange.bind(null, 0.55555, 1.22222, 3,'fluxerror'),
241-
tooltip: 'Flux Error Column',
238+
fieldKey: 'fluxerror',
239+
value: '0.02',
240+
validator: Validate.floatRange.bind(null, 0.01, 0.5, 3,'Flux Error'),
241+
tooltip: 'Flux Error, value is between 0.01 to 0.5',
242242
label : 'Flux Error:',
243243
labelWidth : 100
244244
}} />
@@ -248,8 +248,8 @@ export function LcPFOptionsPanel ({fields}) {
248248
forceReinit={true}
249249
initialState= {{
250250
fieldKey: 'period',
251-
value: '',
252-
validator: Validate.floatRange.bind(null, 0.55555, 1.22222, 3,'period'),
251+
value: '0.5',
252+
validator: Validate.floatRange.bind(null, 0.5, 1.5, 3,'period'),
253253
tooltip: 'Period',
254254
label : 'Period:',
255255
labelWidth : 100
@@ -307,7 +307,7 @@ var DialogReducer= function(inFields, action) {
307307

308308

309309
function resetDefaults() {
310-
dispatchRestoreDefaults('LC_FORM');
310+
dispatchRestoreDefaults('LC_FORM_Panel');
311311

312312
}
313313

0 commit comments

Comments
 (0)