forked from vikunja/frontend
konrad
52f6425b3f
Add microsoft todo migration cases & logo Co-authored-by: kolaente <k@knt.li> Reviewed-on: vikunja/frontend#339 Co-Authored-By: konrad <konrad@kola-entertainments.de> Co-Committed-By: konrad <konrad@kola-entertainments.de>
51 lines
897 B
Vue
51 lines
897 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
|
|
case 'microsoft-todo':
|
|
this.name = 'Microsoft Todo'
|
|
this.identifier = 'microsoft-todo'
|
|
break
|
|
default:
|
|
router.push({name: '404'})
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
|