From 2016b446b5bf45a867f9530b89bb10a6688d8ec1 Mon Sep 17 00:00:00 2001 From: Michael Bauer <michael-bauer@posteo.de> Date: Mon, 4 Nov 2024 12:36:35 +0100 Subject: [PATCH] Handle loading in the coursebook-print-dialog --- .../components/coursebook/CoursebookControls.vue | 1 + .../components/coursebook/CoursebookPrintDialog.vue | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/CoursebookControls.vue b/aleksis/apps/alsijil/frontend/components/coursebook/CoursebookControls.vue index 2119667bd..e7dd45acd 100644 --- a/aleksis/apps/alsijil/frontend/components/coursebook/CoursebookControls.vue +++ b/aleksis/apps/alsijil/frontend/components/coursebook/CoursebookControls.vue @@ -71,6 +71,7 @@ import CoursebookPrintDialog from "./CoursebookPrintDialog.vue"; </v-btn> <coursebook-print-dialog v-if="pageType === 'documentations'" + :loading="selectLoading" /> </div> </div> diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/CoursebookPrintDialog.vue b/aleksis/apps/alsijil/frontend/components/coursebook/CoursebookPrintDialog.vue index 71b27847a..ddf50d123 100644 --- a/aleksis/apps/alsijil/frontend/components/coursebook/CoursebookPrintDialog.vue +++ b/aleksis/apps/alsijil/frontend/components/coursebook/CoursebookPrintDialog.vue @@ -11,6 +11,7 @@ import SecondaryActionButton from "aleksis.core/components/generic/buttons/Secon <secondary-action-button i18n-key="alsijil.coursebook.print" icon-text="$print" + :loading="loading" @click="dialog=true" :disabled="dialog" /> @@ -27,6 +28,16 @@ import SecondaryActionButton from "aleksis.core/components/generic/buttons/Secon */ export default { name: "CoursebookPrintDialog", + props: { + /** + * Loading state + */ + loading: { + type: Boolean, + required: false, + default: false, + }, + }, data() { return { dialog: false, -- GitLab