-
+
mdi-pencil
@@ -197,7 +197,12 @@ export default {
},
computed: {
- ...mapFields("incident", ["selected.events", "selected.name", "timeline_filters"]),
+ ...mapFields("incident", [
+ "selected.events",
+ "selected.name",
+ "timeline_filters",
+ "dialogs.showEditEventDialog",
+ ]),
sortedEvents: function () {
return this.events.slice().sort((a, b) => new Date(a.started_at) - new Date(b.started_at))
@@ -206,7 +211,7 @@ export default {
methods: {
...mapActions("incident", [
"showNewEventDialog",
- "showEditEventDialog",
+ "showNewEditEventDialog",
"showDeleteEventDialog",
"showNewPreEventDialog",
"togglePin",
diff --git a/src/dispatch/static/dispatch/src/incident/store.js b/src/dispatch/static/dispatch/src/incident/store.js
index 81be1bf32601..27f67b543215 100644
--- a/src/dispatch/static/dispatch/src/incident/store.js
+++ b/src/dispatch/static/dispatch/src/incident/store.js
@@ -247,7 +247,7 @@ const actions = {
commit("SET_DIALOG_SHOW_HANDOFF", false)
commit("RESET_SELECTED")
},
- showEditEventDialog({ commit }, event) {
+ showNewEditEventDialog({ commit }, event) {
state.selected.currentEvent = event
commit("SET_DIALOG_EDIT_EVENT", true)
},