refactor: 💡 use recrusive listing for desktop queries
and add mock rescursive support for scopes, targets, and sessions
This commit is contained in:
11 files changed
+132
-110
No files matched your search
@@ -32,6 +32,14 @@ export default class SessionModel extends GeneratedSessionModel {
|
||||
: null;
|
||||
}
|
||||
|
||||
/**
|
||||
* The target associated with this session (if loaded).
|
||||
* @type {TargetModel}
|
||||
*/
|
||||
get target() {
|
||||
return this.store.peekRecord('target', this.target_id);
|
||||
}
|
||||
|
||||
// =methods
|
||||
|
||||
/**
|
||||
|
||||
@@ -45,6 +45,14 @@ export default class TargetModel extends GeneratedTargetModel {
|
||||
.filter(s => s && (s.target_id === this.id));
|
||||
}
|
||||
|
||||
/**
|
||||
* The project associated with this target (if already loaded).
|
||||
* @type {ScopeModel}
|
||||
*/
|
||||
get project() {
|
||||
return this.store.peekRecord('scope', this.scopeID);
|
||||
}
|
||||
|
||||
/**
|
||||
* True if any sessions associated with this target are active or pending.
|
||||
* @type {boolean}
|
||||
|
||||
Reference in new issue
Block a user