-
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/dash/import): create dashboards from imported templates #12496
Conversation
onDismissOverlay={this.handleToggleImportOverlay} | ||
onSubmit={this.handleImportDashboard} | ||
orgID={get(orgs, '0.id', '')} |
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.
Why is this defaulting to the first org? Shouldn't we let the user select org?
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.
this is defaulting to the first org since that's what creating a dashboard does. In a separate pr, i will add an org dropdown to the import overlay so that a user may choose.
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.
</OverlayTechnology> | ||
<ImportDashboardOverlay | ||
onDismissOverlay={this.handleToggleOverlay} | ||
orgID={_.get(orgs, '0.id', '')} |
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.
same comment as above
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.
same as above
return ( | ||
<Button | ||
text={`Import JSON as ${resourceName}`} | ||
onClick={this.submit} |
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.
Can we make a card about this not being a form?
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.
there already is one: #12306
71e7c1e
to
9114362
Compare
Closes #11533
Briefly describe your proposed changes:
Create a dashboard from the imported dashboard.
Make import button in import overlay visible and disabled rather than not visible