Skip to content

Commit

Permalink
Allowing tag type to be specified in notification filters (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss authored Jul 16, 2021
1 parent abb767d commit 6bc7271
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@
/>
</v-list-item-content>
</v-list-item>
<v-list-item>
<v-list-item-content>
<tag-type-filter-combobox
:project="project"
v-model="filters.tag_type"
label="Tag Types"
/>
</v-list-item-content>
</v-list-item>
<v-list-item>
<v-list-item-content>
<incident-type-combobox
Expand Down Expand Up @@ -170,6 +179,7 @@ import IncidentStatusMultiSelect from "@/incident/IncidentStatusMultiSelect.vue"
import TagFilterCombobox from "@/tag/TagFilterCombobox.vue"
import IncidentTypeCombobox from "@/incident_type/IncidentTypeCombobox.vue"
import IncidentPriorityCombobox from "@/incident_priority/IncidentPriorityCombobox.vue"
import TagTypeFilterCombobox from "@/tag_type/TagTypeFilterCombobox.vue"
import IncidentStatus from "@/incident/IncidentStatus.vue"
import IncidentPriority from "@/incident/IncidentPriority.vue"
import SearchUtils from "@/search/utils"
Expand Down Expand Up @@ -213,6 +223,7 @@ export default {
status: [],
tag: [],
project: [],
tag_type: [],
},
}
},
Expand All @@ -222,6 +233,7 @@ export default {
TagFilterCombobox,
IncidentTypeCombobox,
IncidentPriorityCombobox,
TagTypeFilterCombobox,
IncidentStatusMultiSelect,
IncidentStatus,
IncidentPriority,
Expand Down Expand Up @@ -282,6 +294,7 @@ export default {
vm.filters.incident_priority,
vm.filters.status,
vm.filters.tag,
vm.filters.tag_type,
],
() => {
this.expression = SearchUtils.createFilterExpression(this.filters)
Expand Down
1 change: 1 addition & 0 deletions src/dispatch/static/dispatch/src/search/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const getDefaultSelectedState = () => {
incident_priority: [],
status: [],
tag: [],
tag_type: [],
project: [],
},
}
Expand Down

0 comments on commit 6bc7271

Please sign in to comment.