Skip to content
Snippets Groups Projects
Commit 2016b446 authored by permcu's avatar permcu
Browse files

Handle loading in the coursebook-print-dialog

parent 48b8e9c0
No related branches found
No related tags found
1 merge request!422Resolve "Add export functionality to course book"
......@@ -71,6 +71,7 @@ import CoursebookPrintDialog from "./CoursebookPrintDialog.vue";
</v-btn>
<coursebook-print-dialog
v-if="pageType === 'documentations'"
:loading="selectLoading"
/>
</div>
</div>
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment