Now returning cards on creation with pdf

ref #116
This commit is contained in:
Nicolai Ort 2021-03-29 18:23:17 +02:00
parent 7dfaa7579a
commit 1d999d4910

View File

@ -34,7 +34,7 @@
text: $_("creating-blanco-cards"),
duration: -1,
}).showToast();
RunnerCardService.runnerCardControllerPostBlancoBulk(card_count)
RunnerCardService.runnerCardControllerPostBlancoBulk(card_count, false)
.then((result) => {
bulk_modal_open = false;
//
@ -62,8 +62,7 @@
text: $_("creating-blanco-cards"),
duration: -1,
}).showToast();
//TODO: Adjust generation function, when backend is merged
RunnerCardService.runnerCardControllerPostBlancoBulk(card_count)
RunnerCardService.runnerCardControllerPostBlancoBulk(card_count, true)
.then((result) => {
bulk_modal_open = false;
//
@ -72,6 +71,7 @@
duration: 500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();
current_cards = current_cards.concat(result);
const toast = Toastify({
text: $_("generating-pdf"),
duration: -1,