Skip to content

Commit

Permalink
Support multiple participants as filters in dashboard
Browse files Browse the repository at this point in the history
Similar to #5443
  • Loading branch information
aaronherman committed Feb 11, 2025
1 parent 8bc9533 commit 6df2e86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ export default {
methods: {
applyFilters() {
if (this.local_participant) {
if (Array.isArray(this.local_participant)) {
this.local_participant = this.local_participant[0]
}
if (this.local_participant_is_assignee) {
this.filters.assignee = this.local_participant
this.filters.participant = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@
<v-list-item>
<v-card class="mx-auto">
<v-card-title>Incident Participant</v-card-title>
<v-card-subtitle>Show only incidents with this participant</v-card-subtitle>
<v-card-subtitle>Show only incidents with these participant(s)</v-card-subtitle>
<participant-select
class="ml-10 mr-5"
v-model="local_participant"
label="Participant"
hint="Show only incidents with this participant"
hint="Show only incidents with these participant(s)"
:project="filters.project"
clearable
/>
<v-checkbox
class="ml-10 mr-5"
v-model="local_participant_is_commander"
label="And this participant is the Incident Commander"
label="And these participant(s) are the Incident Commander"
:disabled="local_participant == null"
/>
</v-card>
Expand Down Expand Up @@ -159,9 +159,6 @@ export default {
methods: {
applyFilters() {
if (this.local_participant) {
if (Array.isArray(this.local_participant)) {
this.local_participant = this.local_participant[0]
}
if (this.local_participant_is_commander) {
this.filters.commander = this.local_participant
this.filters.participant = null
Expand Down

0 comments on commit 6df2e86

Please sign in to comment.