-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
[dashboard] open in edit mode when adding a chart #4772
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4772 +/- ##
==========================================
+ Coverage 72.59% 72.67% +0.08%
==========================================
Files 205 205
Lines 15401 15402 +1
Branches 1183 1183
==========================================
+ Hits 11180 11194 +14
+ Misses 4218 4205 -13
Partials 3 3
Continue to review full report at Codecov.
|
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.
awesomesauce
@@ -107,7 +107,7 @@ class SaveModal extends React.Component { | |||
.then((data) => { | |||
// Go to new slice url or dashboard url | |||
if (gotodash) { | |||
window.location = data.dashboard; | |||
window.location = data.dashboard + '&edit=true'; |
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.
We might wanna use the URL
object every where we manipulate URLs to make it more robust, eg:
const url = new URL(data.dashboard);
url.searchParams.set('edit', 'true');
window.location = url.href;
* [dashboard] open in edit mode when adding a chart * Move dashboard unit tests to their own file * fix tests * Better URL management
* [dashboard] open in edit mode when adding a chart * Move dashboard unit tests to their own file * fix tests * Better URL management
* [dashboard] open in edit mode when adding a chart * Move dashboard unit tests to their own file * fix tests * Better URL management
No description provided.