feat: 🎸 filter sessions by status & scope (#2058)

* feat: 🎸 filter sessions by status

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12067
This commit is contained in:
Lisbet Alvarez authored and Zhihe Li committed 2024-01-16 10:17:46 -05:00
1 parent 7fa2541ddb
commit c7483e5602
8 files changed
+163 -37

No files matched your search

+8
View File
@@ -108,6 +108,14 @@ export default class TargetModel extends GeneratedTargetModel {
.filter((s) => s && s.target_id === this.id);
}
/**
* Available sessions associated with this target (but only already loaded sessions).
* @type {SessionModel[]}
*/
get availableSessions() {
return this.sessions.filter((session) => session.isAvailable);
}
/**
* The project associated with this target (if already loaded).
* @type {ScopeModel}