@@ -32,7 +32,7 @@ function getDialogBuilder() {
32
32
if ( ! popup ) {
33
33
const popup = (
34
34
< PopupPanel title = { 'Light Curve' } >
35
- < LCInput groupKey = { 'LC_FORM ' } />
35
+ < LCInput groupKey = { 'LC_FORM_Panel ' } />
36
36
</ PopupPanel >
37
37
) ;
38
38
DialogRootContainer . defineDialog ( 'LcParamForm' , popup ) ;
@@ -148,7 +148,7 @@ export class LcParamForm extends Component {
148
148
149
149
constructor ( props ) {
150
150
super ( props ) ;
151
- this . state = { fields :FieldGroupUtils . getGroupFields ( 'LC_FORM ' ) } ;
151
+ this . state = { fields :FieldGroupUtils . getGroupFields ( 'LC_FORM_Panel ' ) } ;
152
152
}
153
153
154
154
componentWillUnmount ( ) {
@@ -159,7 +159,7 @@ export class LcParamForm extends Component {
159
159
160
160
componentDidMount ( ) {
161
161
this . iAmMounted = true ;
162
- this . unbinder = FieldGroupUtils . bindToStore ( 'LC_FORM ' , ( fields ) => {
162
+ this . unbinder = FieldGroupUtils . bindToStore ( 'LC_FORM_Panel ' , ( fields ) => {
163
163
if ( fields !== this . state . fields && this . iAmMounted ) {
164
164
this . setState ( { fields} ) ;
165
165
}
@@ -190,7 +190,7 @@ export function LcPFOptionsPanel ({fields}) {
190
190
191
191
return (
192
192
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' } }
194
194
reducerFunc = { DialogReducer } keepState = { true } >
195
195
< InputGroup labelWidth = { 110 } >
196
196
@@ -223,9 +223,9 @@ export function LcPFOptionsPanel ({fields}) {
223
223
forceReinit = { true }
224
224
initialState = { {
225
225
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 ' ,
229
229
label : 'Flux Column:' ,
230
230
labelWidth : 100
231
231
} } />
@@ -235,10 +235,10 @@ export function LcPFOptionsPanel ({fields}) {
235
235
< ValidationField fieldKey = 'fluxerror'
236
236
forceReinit = { true }
237
237
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 ' ,
242
242
label : 'Flux Error:' ,
243
243
labelWidth : 100
244
244
} } />
@@ -248,8 +248,8 @@ export function LcPFOptionsPanel ({fields}) {
248
248
forceReinit = { true }
249
249
initialState = { {
250
250
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' ) ,
253
253
tooltip : 'Period' ,
254
254
label : 'Period:' ,
255
255
labelWidth : 100
@@ -307,7 +307,7 @@ var DialogReducer= function(inFields, action) {
307
307
308
308
309
309
function resetDefaults ( ) {
310
- dispatchRestoreDefaults ( 'LC_FORM ' ) ;
310
+ dispatchRestoreDefaults ( 'LC_FORM_Panel ' ) ;
311
311
312
312
}
313
313
0 commit comments