Fix checking for existing migration from other services

This commit is contained in:
kolaente 2020-07-05 17:31:15 +02:00
parent 5455c28d56
commit 5e170e14cc
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 14 additions and 6 deletions

View File

@ -2,11 +2,19 @@
<div class="content">
<h1>Import your data from {{ name }} to Vikunja</h1>
<p>Vikunja will import all lists, tasks, notes, reminders and files you have access to.</p>
<template v-if="isMigrating === false && message === '' && lastMigrationDate === 0">
<template v-if="isMigrating === false && message === '' && lastMigrationDate === null">
<p>To authorize Vikunja to access your {{ name }} Account, click the button below.</p>
<a :href="authUrl" class="button is-primary" :class="{'is-loading': migrationService.loading}" :disabled="migrationService.loading">Get Started</a>
<a
:href="authUrl"
class="button is-primary"
:class="{'is-loading': migrationService.loading}"
:disabled="migrationService.loading">
Get Started
</a>
</template>
<div class="migration-in-progress-container" v-else-if="isMigrating === true && message === '' && lastMigrationDate === 0">
<div
class="migration-in-progress-container"
v-else-if="isMigrating === true && message === '' && lastMigrationDate === null">
<div class="migration-in-progress">
<img :src="`/images/migration/${identifier}.png`" :alt="name"/>
<div class="progress-dots">
@ -46,7 +54,7 @@
</template>
<script>
import AbstractMigrationService from "../../services/migrator/abstractMigrationService";
import AbstractMigrationService from '../../services/migrator/abstractMigrationService'
export default {
name: 'migration',