Skip to content
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

Merged
merged 1 commit into from
Mar 11, 2019

Conversation

ischolten
Copy link
Contributor

@ischolten ischolten commented Mar 11, 2019

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

  • Rebased/mergeable
  • Tests pass
  • http/swagger.yml updated (if modified Go structs or API)
  • Sign CLA (if not already signed)

onDismissOverlay={this.handleToggleImportOverlay}
onSubmit={this.handleImportDashboard}
orgID={get(orgs, '0.id', '')}
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

@ischolten ischolten Mar 11, 2019

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', '')}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above

Copy link
Contributor Author

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}
Copy link
Contributor

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?

Copy link
Contributor Author

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

@ischolten ischolten merged commit 3b77ec9 into master Mar 11, 2019
@ischolten ischolten deleted the feat/import-dashboard branch March 11, 2019 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants