Skip to content

Commit 3ce98c0

Browse files
committed
DM-8149: changes based on feedback
1 parent 9f59dc0 commit 3ce98c0

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

src/firefly/js/fieldGroup/FieldGroupCntlr.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export function dispatchRestoreDefaults(groupKey) {
180180
* @param {Action} rawAction
181181
* @return {Function}
182182
*/
183-
export function valueChangeActionCreator(rawAction) {
183+
function valueChangeActionCreator(rawAction) {
184184
return (dispatcher) => {
185185
const {value}= rawAction.payload;
186186
dispatcher(rawAction);
@@ -203,7 +203,7 @@ export function valueChangeActionCreator(rawAction) {
203203
* @param {Action} rawAction
204204
* @return {Function}
205205
*/
206-
export function multiValueChangeActionCreator(rawAction) {
206+
function multiValueChangeActionCreator(rawAction) {
207207
return (dispatcher) => {
208208
const {groupKey, fieldAry}= rawAction.payload;
209209
dispatcher(rawAction);

src/firefly/js/visualize/DrawLayerCntlr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ function getDrawLayerIdAry(dlRoot,id,useGroup) {
518518
//=============================================
519519
//=============================================
520520

521-
export function makeDetachLayerActionCreator(factory) {
521+
function makeDetachLayerActionCreator(factory) {
522522
return (action) => {
523523
return (dispatcher) => {
524524
var {drawLayerId}= action.payload;

src/firefly/js/visualize/ImagePlotCntlr.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ export const ActionScope= new Enum(['GROUP','SINGLE', 'LIST']);
5656

5757
export const PLOTS_PREFIX= 'ImagePlotCntlr';
5858

59-
const ANY_CHANGE= '${PLOT_PREFIX}.AnyChange';
60-
6159
/** Action Type: plot of new image started */
6260
const PLOT_IMAGE_START= `${PLOTS_PREFIX}.PlotImageStart`;
6361
/** Action Type: plot of new image failed */
@@ -250,9 +248,7 @@ function actionCreators() {
250248

251249

252250
export default {
253-
reducer,
254251
reducers, actionCreators,
255-
ANY_CHANGE, // todo remove soon- only for interface with GWT
256252
ANY_REPLOT,
257253
PLOT_IMAGE_START, PLOT_IMAGE_FAIL, PLOT_IMAGE,
258254
ZOOM_IMAGE_START, ZOOM_IMAGE_FAIL, ZOOM_IMAGE,ZOOM_LOCKING,
@@ -787,15 +783,15 @@ export function dispatchExpandedAutoPlay(autoPlayOn) {
787783
* @param {Action} rawAction
788784
* @returns {Function}
789785
*/
790-
export function changePrimeActionCreator(rawAction) {
786+
function changePrimeActionCreator(rawAction) {
791787
return (dispatcher, getState) => changePrime(rawAction,dispatcher,getState);
792788
}
793789

794790
/**
795791
* @param {Action} rawAction
796792
* @returns {Function}
797793
*/
798-
export function deletePlotViewActionCreator(rawAction) {
794+
function deletePlotViewActionCreator(rawAction) {
799795
return (dispatcher, getState) => {
800796
const vr= getState()[IMAGE_PLOT_KEY];
801797
if (vr.wcsMatchType && !rawAction.payload.holdWcsMatch) {
@@ -809,7 +805,7 @@ export function deletePlotViewActionCreator(rawAction) {
809805
* @param {Action} rawAction
810806
* @returns {Function}
811807
*/
812-
export function plotImageActionCreator(rawAction) {
808+
function plotImageActionCreator(rawAction) {
813809
return PlotImageTask.makePlotImageAction(rawAction);
814810
}
815811

@@ -818,7 +814,7 @@ export function plotImageActionCreator(rawAction) {
818814
* @param {Action} rawAction
819815
* @returns {Function}
820816
*/
821-
export function restoreDefaultsActionCreator(rawAction) {
817+
function restoreDefaultsActionCreator(rawAction) {
822818
return (dispatcher, getState) => {
823819
const vr= getState()[IMAGE_PLOT_KEY];
824820
const {plotId}= rawAction.payload;
@@ -845,7 +841,7 @@ export function restoreDefaultsActionCreator(rawAction) {
845841
}
846842

847843

848-
export function autoPlayActionCreator(rawAction) {
844+
function autoPlayActionCreator(rawAction) {
849845
return (dispatcher) => {
850846
var {autoPlayOn}= rawAction.payload;
851847
if (autoPlayOn) {
@@ -886,7 +882,7 @@ const detachAll= (plotViewAry,dl) => plotViewAry.forEach( (pv) => {
886882
});
887883

888884

889-
export function changePointSelectionActionCreator(rawAction) {
885+
function changePointSelectionActionCreator(rawAction) {
890886
return (dispatcher,getState) => {
891887
var store= getState();
892888
var wasEnabled= store[IMAGE_PLOT_KEY].pointSelEnableAry.length ? true : false;

src/firefly/js/visualize/MouseReadoutCntlr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function makeDescriptionItem(title) {
112112
//--------------------------------------------------------------------
113113

114114

115-
export function reducer(state=initState(), action={}) {
115+
function reducer(state=initState(), action={}) {
116116

117117
if (!action.payload || !action.type) return state;
118118

0 commit comments

Comments
 (0)