Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
f9e0e727
Commit
f9e0e727
authored
8 years ago
by
Tom Robinson
Browse files
Options
Downloads
Patches
Plain Diff
Don't show 'qbnewb' modal more than once. Resolves #3078
parent
159419ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/metabase/query_builder/reducers.js
+0
-7
0 additions, 7 deletions
frontend/src/metabase/query_builder/reducers.js
frontend/src/metabase/user.js
+3
-1
3 additions, 1 deletion
frontend/src/metabase/user.js
with
3 additions
and
8 deletions
frontend/src/metabase/query_builder/reducers.js
+
0
−
7
View file @
f9e0e727
...
...
@@ -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
})
},
...
...
This diff is collapsed.
Click to expand it.
frontend/src/metabase/user.js
+
3
−
1
View file @
f9e0e727
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
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment