vikunja-frontend/src/views/migrator/MigrateService.vue

40 lines
651 B
Vue
Raw Normal View History

2020-05-24 15:31:27 +02:00
<template>
<migration
:identifier="identifier"
:name="name"
/>
</template>
<script>
2020-06-17 22:15:59 +02:00
import Migration from '../../components/migrator/migration'
2020-05-24 15:31:27 +02:00
import router from '../../router'
export default {
name: 'migrateService',
components: {
Migration,
},
data() {
return {
name: '',
identifier: '',
}
},
created() {
switch (this.$route.params.service) {
case 'wunderlist':
this.name = 'Wunderlist'
this.identifier = 'wunderlist'
break
case 'todoist':
this.name = 'Todoist'
this.identifier = 'todoist'
break
default:
router.push({name: '404'})
}
},
}
</script>