Commit f120e181 authored by Anton's avatar Anton

Update constants.MAP_TYPE... to constants.mapTypes.MAP_TYPE...

parent df4178c7
......@@ -128,7 +128,7 @@
handler () {
context.payload.author = context.$store.state.auth.payload.userId
if (!context.$route.params.uuid) {
context.payload.type = [constants.MAP_TYPE_TIMELINE]
context.payload.type = [constants.mapTypes.MAP_TYPE_TIMELINE]
}
return Promise.resolve()
.then(() => {
......
......@@ -99,13 +99,13 @@
typeFromRoute () {
let path = this.$route.path
if (/.+\/timelines\/[^/]+\/edit$/.test(path)) {
return constants.MAP_TYPE_TIMELINE
return constants.mapTypes.MAP_TYPE_TIMELINE
}
else if (/.+\/videos\/[^/]+\/edit$/.test(path)) {
return 'Video'
}
else if (/.+\/grids\/[^/]+\/edit$/.test(path)) {
return constants.MAP_TYPE_2D_GRID
return constants.mapTypes.MAP_TYPE_2D_GRID
}
else {
return 'Unknown'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment