diff --git a/addons/core/translations/states/en-us.yaml b/addons/core/translations/states/en-us.yaml index 96b1fd92c..1edb1e6ce 100644 --- a/addons/core/translations/states/en-us.yaml +++ b/addons/core/translations/states/en-us.yaml @@ -3,3 +3,6 @@ success: Success warning: Warning error: Error copied: Copied +connection: + success: + description: "Local proxy address ({protocol}): {address}:{port}" diff --git a/ui/desktop/app/routes/scopes/scope/projects/targets.js b/ui/desktop/app/routes/scopes/scope/projects/targets.js index a88a5e5e1..f8c23251e 100644 --- a/ui/desktop/app/routes/scopes/scope/projects/targets.js +++ b/ui/desktop/app/routes/scopes/scope/projects/targets.js @@ -58,8 +58,10 @@ export default class ScopesScopeProjectsTargetsRoute extends Route { token: this.session.data.authenticated.token, }); - // Show the user a modal with basic connection info. - this.confirm.confirm(connection, { isConnectSuccess: true }); + await connection.then((details) => { + // Show the user a modal with basic connection info. + this.confirm.confirm(details, { isConnectSuccess: true }); + }); } catch(e) { this.confirm.confirm(e.message, { isConnectError: true }) .then(() => this.connect(model)) diff --git a/ui/desktop/app/templates/application.hbs b/ui/desktop/app/templates/application.hbs index 07e8c79dc..6dfa45877 100644 --- a/ui/desktop/app/templates/application.hbs +++ b/ui/desktop/app/templates/application.hbs @@ -57,11 +57,11 @@ @dismiss={{accept}} as |dialog|> - - {{confirmation.text.address}} - - {{confirmation.text.port}} - + {{t 'states.connection.success.description' + port=confirmation.text.port + address=confirmation.text.address + protocol=confirmation.text.protocol + }}
- {{confirmation.text.address}} - - {{confirmation.text.port}} -