Skip to content
Snippets Groups Projects
Commit 0a722a1c authored by Tom Robinson's avatar Tom Robinson Committed by GitHub
Browse files

Merge pull request #3484 from metabase/fix-persistent-qb-newb-modal-2

Don't show 'qbnewb' modal more than once.
parents 2eb9a680 f9e0e727
No related branches found
No related tags found
No related merge requests found
......@@ -37,13 +37,6 @@ import {
SET_CURRENT_STATE
} from "./actions";
// TODO: once we are using the global redux store we can get this from there
export const user = handleActions({
[CLOSE_QB_NEWB_MODAL]: { next: (state, { payload }) => ({...state, is_qbnewb: false}) }
}, null);
// various ui state options
export const uiControls = handleActions({
[INITIALIZE_QB]: { next: (state, { payload }) => ({ ...state, ...payload.uiControls }) },
......
import { createAction } from "redux-actions";
import { handleActions } from 'redux-actions';
import { CLOSE_QB_NEWB_MODAL } from "metabase/query_builder/actions";
export const setUser = createAction("SET_USER");
......@@ -19,5 +20,6 @@ export const refreshCurrentUser = createAction("REFRESH_CURRENT_USER", async fun
export const currentUser = handleActions({
["SET_USER"]: { next: (state, { payload }) => payload },
["REFRESH_CURRENT_USER"]: { next: (state, { payload }) => payload },
["AUTH_LOGOUT"]: { next: (state, { payload }) => null }
["AUTH_LOGOUT"]: { next: (state, { payload }) => null },
[CLOSE_QB_NEWB_MODAL]: { next: (state, { payload }) => ({ ...state, is_qbnewb: false }) },
}, null);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment