-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows to handoff incidents in bulk (#2984)
* Adds dialog to handoff incidents in the Web UI * Removes commented code * Improvements * Bugfixes * Improvements * New dialog version * Improvements * Removes Pydantic model * Removes incident view * removes bulkHandoff api call * removes commented code * makes eslint happy
- Loading branch information
Showing
9 changed files
with
132 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
src/dispatch/static/dispatch/src/incident/HandoffDialog.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<template> | ||
<v-dialog v-model="showHandoffDialog" persistent max-width="800px"> | ||
<v-card> | ||
<v-card-title> | ||
<span class="headline">Handoff Incidents</span> | ||
</v-card-title> | ||
<v-card-text> | ||
Select the new commander for the selected incidents. | ||
</v-card-text> | ||
<v-card-actions> | ||
<v-container grid-list-md> | ||
<v-layout wrap> | ||
<v-flex xs12> | ||
<participant-select v-model="commander" label="Incident Commander" :project="project"/> | ||
</v-flex> | ||
<!-- <v-flex xs12> --> | ||
<!-- <v-checkbox v-model="report" label="Generate Report"/> --> | ||
<!-- </v-flex> --> | ||
<v-btn color="blue en-1" text @click="closeHandoffDialog()"> Cancel </v-btn> | ||
<v-btn color="red en-1" text :loading="loading" @click="saveBulk({commander: commander})"> | ||
Handoff | ||
</v-btn> | ||
</v-layout> | ||
</v-container> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</template> | ||
|
||
<script> | ||
import { mapFields } from "vuex-map-fields" | ||
import { mapActions } from "vuex" | ||
import ParticipantSelect from "@/incident/ParticipantSelect.vue" | ||
export default { | ||
name: "IncidentHandoffDialog", | ||
data() { | ||
return { | ||
commander: { individual: { name: "Commander Name" }}, | ||
report: false, | ||
} | ||
}, | ||
components: { | ||
ParticipantSelect, | ||
}, | ||
computed: { | ||
...mapFields("incident", ["dialogs.showHandoffDialog", "selected.loading", "selected.project"]), | ||
}, | ||
methods: { | ||
...mapActions("incident", ["closeHandoffDialog", "saveBulk", "resetSelected"]), | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters