From 405dd1c1a648cce960aab2523f09c7aedd93a749 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 24 May 2020 15:49:58 +0200 Subject: [PATCH] Fix getting migration status --- src/components/migrator/migration.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/migrator/migration.vue b/src/components/migrator/migration.vue index fda96cd1a..74455afdc 100644 --- a/src/components/migrator/migration.vue +++ b/src/components/migrator/migration.vue @@ -23,9 +23,9 @@

Importing in progress, hang tight...

-
+

- It looks like you've already imported your stuff from {{ name }} at {{ new Date(lastMigrationDate * 1000) }}.
+ It looks like you've already imported your stuff from {{ name }} at {{ formatDate(lastMigrationDate) }}.
Importing again is possible, but might create duplicates. Are you sure?

@@ -54,7 +54,7 @@ return { authUrl: '', isMigrating: false, - lastMigrationDate: 0, + lastMigrationDate: null, message: '', wunderlistCode: '', } @@ -78,8 +78,8 @@ this.wunderlistCode = this.$route.query.code this.migrationService.getStatus() .then(r => { - if(r.time_unix > 0) { - this.lastMigrationDate = r.time_unix + if(r.time_unix) { + this.lastMigrationDate = new Date(r.time_unix) return } this.migrate()