2020-05-24 15:31:27 +02:00
|
|
|
<template>
|
|
|
|
<migration
|
2020-09-05 22:35:52 +02:00
|
|
|
:identifier="identifier"
|
|
|
|
:name="name"
|
2020-05-24 15:31:27 +02:00
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-09-05 22:35:52 +02:00
|
|
|
import Migration from '../../components/migrator/migration'
|
|
|
|
import router from '../../router'
|
2020-05-24 15:31:27 +02:00
|
|
|
|
2020-09-05 22:35:52 +02:00
|
|
|
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
|
|
|
|
default:
|
|
|
|
router.push({name: '404'})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
2020-05-24 15:31:27 +02:00
|
|
|
</script>
|
|
|
|
|