feat: Add intl connection details

This commit is contained in:
Susmitha Girumala committed 2020-12-09 17:16:38 -05:00
1 parent 88111cefb6
commit 0039e5d2e9
3 files changed
+12 -7

No files matched your search

@@ -3,3 +3,6 @@ success: Success
warning: Warning
error: Error
copied: Copied
connection:
success:
description: "Local proxy address ({protocol}): {address}:{port}"
@@ -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))
+5 -5
View File
@@ -57,11 +57,11 @@
@dismiss={{accept}}
as |dialog|>
<dialog.body>
<p>
{{confirmation.text.address}}
<br>
{{confirmation.text.port}}
</p>
{{t 'states.connection.success.description'
port=confirmation.text.port
address=confirmation.text.address
protocol=confirmation.text.protocol
}}
</dialog.body>
<dialog.footer>
<Rose::Button @style="primary" {{on "click" accept}}>