
Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/699 Co-authored-by: konrad <k@knt.li> Co-committed-by: konrad <k@knt.li>
41 lines
774 B
Vue
41 lines
774 B
Vue
<template>
|
|
<migration
|
|
:identifier="identifier"
|
|
:name="name"
|
|
:is-file-migrator="isFileMigrator"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import Migration from '../../components/migrator/migration'
|
|
import {getMigratorFromSlug} from '../../helpers/migrator'
|
|
|
|
export default {
|
|
name: 'migrateService',
|
|
components: {
|
|
Migration,
|
|
},
|
|
data() {
|
|
return {
|
|
name: '',
|
|
identifier: '',
|
|
isFileMigrator: false,
|
|
}
|
|
},
|
|
mounted() {
|
|
this.setTitle(this.$t('migrate.titleService', {name: this.name}))
|
|
},
|
|
created() {
|
|
try {
|
|
const {name, identifier, isFileMigrator} = getMigratorFromSlug(this.$route.params.service)
|
|
this.name = name
|
|
this.identifier = identifier
|
|
this.isFileMigrator = isFileMigrator
|
|
} catch (e) {
|
|
this.$router.push({name: '404'})
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
|