Skip to content

Commit

Permalink
modals: implement create image upload wizard
Browse files Browse the repository at this point in the history
A user may want to upload an image to a cloud service provider. The
create image modal has been updated to be a wizard. When creating an
ami a user has the option to upload it to aws. If they select to upload
it to aws they will be prompted for the needed upload arguments. The
create image modal has also been renamed to the create image upload
modal. Therefore, several files have been updated per the name changes.
Also, the tests relating to image creation or the create image button
are updated.
  • Loading branch information
jkozol committed Apr 14, 2020
1 parent c5297cb commit 76ab1f3
Show file tree
Hide file tree
Showing 12 changed files with 688 additions and 385 deletions.
4 changes: 2 additions & 2 deletions components/ListView/BlueprintsDataList.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from "prop-types";
import { DataList, DataListItem, DataListItemRow, DataListCell, DataListItemCells } from "@patternfly/react-core";
import { PficonTemplateIcon } from "@patternfly/react-icons";
import Link from "../Link/Link";
import CreateImage from "../Modal/CreateImage";
import CreateImageUpload from "../Modal/CreateImageUpload";
import DeleteBlueprint from "../Modal/DeleteBlueprint";
import ExportBlueprint from "../Modal/ExportBlueprint";

Expand Down Expand Up @@ -46,7 +46,7 @@ class BlueprintsDataList extends React.PureComponent {
<Link to={`/edit/${blueprint.name}`} className="btn btn-default">
<FormattedMessage defaultMessage="Edit Packages" />
</Link>
<CreateImage blueprint={blueprint} layout={layout} />
<CreateImageUpload blueprint={blueprint} layout={layout} />
<div className="dropdown pull-right dropdown-kebab-pf">
<button
className="btn btn-link dropdown-toggle"
Expand Down
3 changes: 2 additions & 1 deletion components/ListView/ListItemImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@ const messages = defineMessages({
class ListItemImages extends React.Component {
constructor() {
super();
this.state = { logsExpanded: false };
this.state = { logsExpanded: false, uploadsExpanded: false };
this.handleDelete = this.handleDelete.bind(this);
this.handleCancel = this.handleCancel.bind(this);
this.handleShowModalStop = this.handleShowModalStop.bind(this);
this.handleShowModalDeleteImage = this.handleShowModalDeleteImage.bind(this);
this.handleLogsShow = this.handleLogsShow.bind(this);
this.handleUploadsShow = this.handleUploadsShow.bind(this);
}

// maps to Remove button for FAILED
Expand Down
359 changes: 0 additions & 359 deletions components/Modal/CreateImage.js

This file was deleted.

Loading

0 comments on commit 76ab1f3

Please sign in to comment.