diff --git a/src/Containers.jsx b/src/Containers.jsx index 7ac57da0e..8e429873e 100644 --- a/src/Containers.jsx +++ b/src/Containers.jsx @@ -273,6 +273,7 @@ class Containers extends React.Component { this.state = { width: 0, showCreateContainerModal: false, + createPod: null, downloadingContainers: [], }; this.renderRow = this.renderRow.bind(this); @@ -502,7 +503,8 @@ class Containers extends React.Component { this.setState({ showCreateContainerModal: false })} + close={() => this.setState({ showCreateContainerModal: false, createPod: null })} + pod={this.state.createPod} registries={this.props.registries} selinuxAvailable={this.props.selinuxAvailable} podmanRestartAvailable={this.props.podmanRestartAvailable} @@ -566,6 +568,12 @@ class Containers extends React.Component { {_("pod group")} + {_(podStatus)} diff --git a/src/ImageRunModal.jsx b/src/ImageRunModal.jsx index 3cf1df940..3e1343737 100644 --- a/src/ImageRunModal.jsx +++ b/src/ImageRunModal.jsx @@ -350,6 +350,10 @@ export class ImageRunModal extends React.Component { getCreateConfig() { const createConfig = {}; + if (this.props.pod) { + createConfig.pod = this.props.pod.Id; + } + if (this.state.image) { createConfig.image = this.state.image.RepoTags ? this.state.image.RepoTags[0] : ""; } else { @@ -1021,7 +1025,7 @@ export class ImageRunModal extends React.Component { this.props.close(); } }} - title={_("Create container")} + title={this.props.pod ? cockpit.format(_("Create container in $0"), this.props.pod.Name) : _("Create container")} footer={<> {this.state.dialogError && }