frontend/src/views/migrator/MigrateService.vue
konrad 60c5097d82 Add trello migration (#336)
Reload namespaces and lists after migrating

Add trello logo

Add trello migration

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/frontend#336
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-12-17 13:44:22 +00:00

47 lines
789 B
Vue

<template>
<migration
:identifier="identifier"
:name="name"
/>
</template>
<script>
import Migration from '../../components/migrator/migration'
import router from '../../router'
export default {
name: 'migrateService',
components: {
Migration,
},
data() {
return {
name: '',
identifier: '',
}
},
mounted() {
this.setTitle(`Import your data from ${this.name} into Vikunja`)
},
created() {
switch (this.$route.params.service) {
case 'wunderlist':
this.name = 'Wunderlist'
this.identifier = 'wunderlist'
break
case 'todoist':
this.name = 'Todoist'
this.identifier = 'todoist'
break
case 'trello':
this.name = 'Trello'
this.identifier = 'trello'
break
default:
router.push({name: '404'})
}
},
}
</script>