refactor: 💡 use recrusive listing for desktop queries

and add mock rescursive support for scopes, targets, and sessions
This commit is contained in:
Randall Morey committed 2021-02-10 13:19:24 -05:00
1 parent 450b8c2ab0
commit 0b8550c136
11 files changed
+132 -110

No files matched your search

+8
View File
@@ -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}