# HG changeset patch # User Bernhard Reiter # Date 1548147668 -3600 # Node ID 4235fa8f59d7122652f22b7911d8337e08bfde02 # Parent f88773a2c0a076357df4b2b5c539873e44587758 clien: pdf-gen: load logo externally; add prepare step * Change the way how the logo to be placed in the pdf is loaded: It can be configured in the `.env.localĀ“ file, otherwise a placeholder will be loaded from the static assets. The placeholder has not been placed in `assets` because it won't be needed if a real logo has been specified and thus should not compiled in by default. * Add a mechanism to do asynchronous preparations before rendering. This is needed for the completeion of the Image() loading, but it also shows how asynchronous preparational step can be added in principle. * Disable the start button when the current rendering is in progress. diff -r f88773a2c0a0 -r 4235fa8f59d7 client/.env --- a/client/.env Tue Jan 22 09:47:56 2019 +0100 +++ b/client/.env Tue Jan 22 10:01:08 2019 +0100 @@ -5,8 +5,9 @@ VUE_APP_API_URL=/api/ VUE_BACKEND_API_URL=http://gemma_backend:8000 -#URL of secondary logo -VUE_APP_SECONDARY_LOGO_URL= - #Path of vendored images is copied during a webpack build VUE_APP_VENDOR_IMG_PATH= + +#Logos to be potentially loaded by the SPA. Can be left blank. +VUE_APP_SECONDARY_LOGO_URL= +VUE_APP_LOGO_FOR_PDF_URL= diff -r f88773a2c0a0 -r 4235fa8f59d7 client/src/components/Pdftool.vue --- a/client/src/components/Pdftool.vue Tue Jan 22 09:47:56 2019 +0100 +++ b/client/src/components/Pdftool.vue Tue Jan 22 10:01:08 2019 +0100 @@ -56,6 +56,7 @@