From 8099f81e9fbdcf4afd935a99db96184799fc01ee Mon Sep 17 00:00:00 2001 From: Matej Marusak Date: Tue, 21 Jul 2020 09:39:08 +0200 Subject: [PATCH] Introduce registries selection Related #85 --- src/Images.jsx | 1 + src/app.jsx | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Images.jsx b/src/Images.jsx index d1ba391d6..e2b0c0a1f 100644 --- a/src/Images.jsx +++ b/src/Images.jsx @@ -261,6 +261,7 @@ class Images extends React.Component { close={() => this.setState({ showSearchImageModal: false })} downloadImage={this.downloadImage} user={this.props.user} + registries={this.props.registries} userServiceAvailable={this.props.userServiceAvailable} systemServiceAvailable={this.props.systemServiceAvailable} /> } {this.state.imageDownloadInProgress &&
{_("Pulling")} {this.state.imageDownloadInProgress}...
} diff --git a/src/app.jsx b/src/app.jsx index 10f316123..3580f44e1 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -324,7 +324,11 @@ class Application extends React.Component { init(system) { client.getInfo(system) .then(reply => { - this.setState({ [system ? "systemServiceAvailable" : "userServiceAvailable"]: true, version: reply.version.Version }); + this.setState({ + [system ? "systemServiceAvailable" : "userServiceAvailable"]: true, + version: reply.version.Version, + registries: reply.registries, + }); this.updateImagesAfterEvent(system); this.updateContainersAfterEvent(system, true); client.streamEvents(system, @@ -514,6 +518,7 @@ class Application extends React.Component { user={permission.user || _("user")} userServiceAvailable={this.state.userServiceAvailable} systemServiceAvailable={this.state.systemServiceAvailable} + registries={this.state.registries} />; const containerList =