# HG changeset patch # User Thomas Junk # Date 1569852468 -7200 # Node ID 8a6c410f6f03ca8f50022c11f17d0bb2b86215f5 # Parent e0e9cd86ec04b3b0eb53a1e48210e925300b1252 import_overview: export spawns info toast. diff -r e0e9cd86ec04 -r 8a6c410f6f03 client/src/components/importoverview/ImportOverview.vue --- a/client/src/components/importoverview/ImportOverview.vue Mon Sep 30 15:58:32 2019 +0200 +++ b/client/src/components/importoverview/ImportOverview.vue Mon Sep 30 16:07:48 2019 +0200 @@ -134,6 +134,7 @@ import { STATES } from "@/store/imports"; import { sortTable } from "@/lib/mixins"; import { HTTP } from "@/lib/http"; +import app from "@/main"; import { startOfDay, startOfHour, @@ -242,6 +243,14 @@ icon: "check", callback: dates => { const { from, to } = dates; + displayInfo({ + title: "Generating CSV", + message: `${from} - ${to}`, + options: { + timeout: 0, + buttons: [{ text: "Ok", action: null, bold: true }] + } + }); HTTP.get( `/imports?from=${encodeURIComponent( format(startOfDay(new Date(from)), "YYYY-MM-DDTHH:mm:ssZ") @@ -254,6 +263,7 @@ ) .then(response => { const { imports } = response.data; + app.$snotify.clear(); if (!imports) return; const csvLink = "data:text/csv;charset=utf-8," + @@ -278,6 +288,7 @@ }) .catch(error => { const { status, data } = error.response; + app.$snotify.clear(); displayError({ title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}`