MCPcopy Create free account
hub / github.com/codecombat/codecombat / openEventPanel

Function openEventPanel

app/core/store/modules/events.js:113–119  ·  view source on GitHub ↗
({ commit, state }, { type = 'info', date, eventId, event, instance } = {})

Source from the content-addressed store, hash-verified

111 },
112 actions: {
113 openEventPanel ({ commit, state }, { type = 'info', date, eventId, event, instance } = {}) {
114 if (eventId) {
115 event = state.events[eventId]
116 }
117 commit('selectEvent', { event, instance })
118 commit('openPanel', { type, date })
119 },
120 async fetchAllEvents ({ dispatch }) {
121 const events = await getAllEvents()
122

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected