Skip to content

Commit 36ac8ad

Browse files
author
Lijun Zhang
committed
IRSA-611:
After using plotly, the period is no longer displayed. Thie reason is that LcPeriodPlotly failed to save the period value to the store.
1 parent 53efe27 commit 36ac8ad

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {LC, updateLayoutDisplay, getValidValueFrom, getFullRawTable} from './LcM
2424
import {doPFCalculate, getPhase} from './LcPhaseTable.js';
2525
import {LcPeriodogram, cancelPeriodogram, popupId} from './LcPeriodogram.jsx';
2626
import {ReadOnlyText, getTypeData} from './LcUtil.jsx';
27-
import {LO_VIEW, getLayouInfo} from '../../core/LayoutCntlr.js';
27+
import {LO_VIEW, getLayouInfo,dispatchUpdateLayoutInfo} from '../../core/LayoutCntlr.js';
2828
import {isDialogVisible, dispatchHideDialog} from '../../core/ComponentCntlr.js';
2929
import {updateSet} from '../../util/WebUtil.js';
3030
import {PlotlyWrapper} from '../../charts/ui/PlotlyWrapper.jsx';
@@ -960,6 +960,16 @@ function setPFTableSuccess() {
960960

961961
doPFCalculate(flux, timeName, period, tzero);
962962

963+
const min = get(reqData, fKeyDef.min.fkey,defPeriod.min );
964+
const max = get(reqData, fKeyDef.max.fkey, defPeriod.max);
965+
const tzeroMax = get(reqData, fKeyDef.tzmax.fkey.fkey, defPeriod.tzeroMax);
966+
967+
const layoutInfo = getLayouInfo();
968+
dispatchUpdateLayoutInfo(Object.assign({}, layoutInfo, {
969+
970+
periodRange: {min, max, tzero, tzeroMax, period}
971+
}));
972+
963973
if (isDialogVisible(popupId)) {
964974
cancelPeriodogram();
965975
}

0 commit comments

Comments
 (0)