-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for handing off cases in bulk (#2985)
- Loading branch information
Showing
3 changed files
with
85 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<template> | ||
<v-dialog v-model="showHandoffDialog" persistent max-width="800px"> | ||
<v-card> | ||
<v-card-title> | ||
<span class="headline">Handoff Cases</span> | ||
</v-card-title> | ||
<v-card-text> | ||
Select the new assignee for the selected cases. | ||
</v-card-text> | ||
<v-card-actions> | ||
<v-container grid-list-md> | ||
<v-layout wrap> | ||
<v-flex xs12> | ||
<participant-select v-model="assignee" label="Case Assignee" :project="project"/> | ||
</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({assignee: assignee})"> | ||
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: "CaseHandoffDialog", | ||
data() { | ||
return { | ||
assignee: { individual: { name: "Assignee Name" }}, | ||
} | ||
}, | ||
components: { | ||
ParticipantSelect, | ||
}, | ||
computed: { | ||
...mapFields("case_management", ["dialogs.showHandoffDialog", "selected.loading", "selected.project"]), | ||
}, | ||
methods: { | ||
...mapActions("case_management", ["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