@@ -27,14 +27,14 @@ import {dispatchShowDialog} from '../../core/ComponentCntlr.js';
27
27
import { dispatchTableSearch , TABLE_HIGHLIGHT } from '../../tables/TablesCntlr.js' ;
28
28
29
29
import { loadXYPlot } from '../../charts/dataTypes/XYColsCDT.js' ;
30
- import { RAW_TABLE , PHASE_FOLDED , PERIODOGRAM , PEAK_TABLE } from '../../templates/lightcurve/LcManager.js' ;
30
+ import { RAW_TABLE , PHASE_FOLDED , PERIODOGRAM , PEAK_TABLE , setupImages } from '../../templates/lightcurve/LcManager.js' ;
31
31
import { showPhaseFoldingPopup } from './LcPhaseFoldingPopup.jsx' ;
32
32
33
33
import { isUndefined , get , set , isNil } from 'lodash' ;
34
34
import { take } from 'redux-saga/effects' ;
35
35
import './LCPanels.css' ;
36
36
37
- const grpkey = 'LC_FORM_Panel' ;
37
+ export const grpkey = 'LC_FORM_Panel' ;
38
38
39
39
function getDialogBuilder ( ) {
40
40
var popup = null ;
@@ -265,8 +265,8 @@ export function LcPFOptionsPanel ({fields}) {
265
265
fieldKey : 'cutoutSize' ,
266
266
value : '0.3' ,
267
267
//validator: Validate.floatRange.bind(null, 0.1, 1, 3,'cutoutsize'),
268
- tooltip : 'Cutout Size' ,
269
- label : 'Cutout Size:' ,
268
+ tooltip : 'Cutout Size in degrees ' ,
269
+ label : 'Cutout Size (deg) :' ,
270
270
labelWidth : 100
271
271
} } />
272
272
@@ -441,7 +441,6 @@ function handleTableHighlight(action) {
441
441
if ( per ) {
442
442
dispatchValueChange ( { fieldKey : 'period' , groupKey : grpkey , value : per } ) ;
443
443
}
444
-
445
444
}
446
445
//export default LcPhaseFoldingForm;
447
446
@@ -458,4 +457,16 @@ function getPeriodFromTable(tbl_id) {
458
457
} else if ( tbl_id === PEAK_TABLE ) {
459
458
return getCellValue ( tableModel , tableModel . highlightedRow , 'Period' ) ;
460
459
}
460
+ }
461
+
462
+ /**
463
+ * return true if the table is LC raw or phase folded table
464
+ * @param {string } tbl_id
465
+ * @returns
466
+ */
467
+ function isLcTable ( tbl_id ) {
468
+ const tableModel = getTblById ( tbl_id ) ;
469
+ if ( ! tableModel || isNil ( tableModel . highlightedRow ) ) return ;
470
+ return ! ! [ RAW_TABLE , PHASE_FOLDED ] . includes ( tbl_id ) ;
471
+
461
472
}
0 commit comments