Commit e20e5a5c authored by Anton's avatar Anton

Replace author with creator, replace old map types with new classes

parent 0705684e
Pipeline #28468 passed with stage
in 7 minutes and 1 second
......@@ -126,9 +126,9 @@
},
submit: {
handler () {
context.payload.author = context.$store.state.auth.payload.userId
context.payload.creator = context.$store.state.auth.payload.userId
if (!context.$route.params.uuid) {
context.payload.type = [constants.mapTypes.MAP_TYPE_TIMELINE]
context.payload.type = [constants.mapClasses.MAP_CLASS_TIMELINE]
}
return Promise.resolve()
.then(() => {
......
......@@ -105,7 +105,7 @@
return 'Video'
}
else if (/.+\/grids\/[^/]+\/edit$/.test(path)) {
return constants.mapTypes.MAP_TYPE_2D_GRID
return constants.mapTypes.MAP_TYPE_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