(state, _getters, _rootState, rootGetters)
| 36 | }, |
| 37 | |
| 38 | getMapUrl (state, _getters, _rootState, rootGetters) { |
| 39 | const courseInstanceId = state.currentCourseInstanceId |
| 40 | const courseId = state.currentCourseId |
| 41 | const campaign = rootGetters['campaigns/getCampaignData']({ courseInstanceId, courseId }) |
| 42 | if (!campaign) { |
| 43 | return undefined |
| 44 | } |
| 45 | let url = urls.courseWorldMap({ |
| 46 | courseId, |
| 47 | courseInstanceId, |
| 48 | campaignId: campaign.slug, |
| 49 | codeLanguage: utils.getQueryVariable('codeLanguage') |
| 50 | }) |
| 51 | if (utils.showOzaria() && !url.includes('ozaria')) { |
| 52 | url = url.replace(/^\/play\//, '/play/ozaria/') |
| 53 | } |
| 54 | return url |
| 55 | } |
| 56 | }, |
| 57 | |
| 58 | actions: { |
nothing calls this directly
no outgoing calls
no test coverage detected