feat: 🎸 add host details to session details screen if present (#1889)
* feat: 🎸 add host details to session details screen if present ✅ Closes: ICU-10282 * refactor: 💡 update style for host details * refactor: 💡 update styles for sidebar details * refactor: 💡 remove unneeded class selector
This commit is contained in:
1 parent
f0a848721a
commit
edd42ee927
8 files changed
+141
-80
No files matched your search
@@ -110,6 +110,7 @@ export default class SessionModel extends GeneratedSessionModel {
|
||||
@tracked started_desktop_client;
|
||||
@tracked proxy_address;
|
||||
@tracked proxy_port;
|
||||
@tracked host;
|
||||
credentials = A();
|
||||
|
||||
@equal('status', STATUS_SESSION_ACTIVE) isActive;
|
||||
@@ -159,6 +160,14 @@ export default class SessionModel extends GeneratedSessionModel {
|
||||
this.credentials.pushObject(new SessionCredential(cred));
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds associated host to session if host present
|
||||
* @param {HostModel} host
|
||||
*/
|
||||
addHost(host) {
|
||||
this.host = host;
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels the session via the `cancel` method.
|
||||
* See serializer and adapter for more information.
|
||||
|
||||
Reference in new issue
Block a user