From e8ef542b4aa0ded1d8b1ee28c21e89ac77f9aa66 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Wed, 7 Apr 2021 16:37:11 -0800 Subject: [PATCH] set loader for migration --- .../src/components/Admin/Migration/MigrationCard.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Admin/Migration/MigrationCard.vue b/frontend/src/components/Admin/Migration/MigrationCard.vue index 7f3ef7ed4..8dad1af08 100644 --- a/frontend/src/components/Admin/Migration/MigrationCard.vue +++ b/frontend/src/components/Admin/Migration/MigrationCard.vue @@ -40,7 +40,13 @@ {{ $t("general.delete") }} - + {{ $t("general.import") }} @@ -82,10 +88,10 @@ export default { this.$emit("refresh"); }, async importMigration(file_name) { - this.loading == true; + this.loading = true; let response = await api.migrations.import(this.folder, file_name); this.$emit("imported", response.successful, response.failed); - this.loading == false; + this.loading = false; }, readableTime(timestamp) { let date = new Date(timestamp);