Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/dispatch/incident/severity/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
router = APIRouter()


@router.get("", response_model=IncidentSeverityPagination, tags=["case_severities"])
def get_case_severities(*, common: dict = Depends(common_parameters)):
"""Returns all case severities."""
@router.get("", response_model=IncidentSeverityPagination, tags=["incident_severities"])
def get_incident_severities(*, common: dict = Depends(common_parameters)):
"""Returns all incident severities."""
return search_filter_sort_paginate(model="IncidentSeverity", **common)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export default {
},

created: function () {
CaseSeverityApi.getAll().then((response) => {
let filterOptions = {
itemsPerPage: -1,
}
CaseSeverityApi.getAll(filterOptions).then((response) => {
this.severities = [
...new Set(
map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export default {
},

created: function () {
IncidentPriorityApi.getAll().then((response) => {
let filterOptions = {
itemsPerPage: -1,
}
IncidentPriorityApi.getAll(filterOptions).then((response) => {
this.priorities = [
...new Set(
map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export default {
},

created: function () {
IncidentSeverityApi.getAll().then((response) => {
let filterOptions = {
itemsPerPage: -1,
}
IncidentSeverityApi.getAll(filterOptions).then((response) => {
this.severities = [
...new Set(
map(
Expand Down