-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui): Persist variables control bar preferences #12901
Conversation
c75238e
to
3b3fe0f
Compare
3b3fe0f
to
30a704f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/> | ||
{isShowingVariablesControlBar && ( | ||
{showVariablesControls && !!dashboard && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
@@ -25,7 +26,8 @@ const localState = { | |||
duration: '15m', | |||
}, | |||
], | |||
variables: initialState(), | |||
variables: initialVariablesState(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would we need to worry about sensitive data in variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the initial state of variables doesnt have much in it. plus this is just mocks
queries={this.queries} | ||
key={manualRefresh} | ||
variables={this.variableAssignments} | ||
<SpinnerContainer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
Closes #12845
Closes #12846
Briefly describe your proposed changes:
Save user preference for open or closed variables control bar in local storage.
default to open.