Skip to content
Snippets Groups Projects
Commit c6048ba9 authored by Julian's avatar Julian Committed by magicfelix
Browse files

Re-Enable scrolling when celery progress dialog is opened

parent 2385a348
No related branches found
No related tags found
1 merge request!1262Resolve "Scrolling on Vuetify-based pages is not possible when the CeleryProgressBottom drawer is open"
Pipeline #134052 failed
......@@ -14,6 +14,7 @@ Fixed
* Progress page didn't work properly.
* About page failed to load for apps with an unknown licence.
* Some pages couldn't be scrolled when a task progress popup was open.
`3.1`_ - 2022-05-30
-------------------
......
<template>
<v-bottom-sheet :value="show" persistent hide-overlay max-width="400px">
<v-bottom-sheet
:value="show"
persistent
hide-overlay
max-width="400px"
ref="sheet"
>
<v-expansion-panels accordion v-model="open">
<v-expansion-panel>
<v-expansion-panel-header color="primary" class="white--text px-4">
......@@ -33,6 +39,13 @@ export default {
data() {
return { open: 0 };
},
mounted() {
// Vuetify uses the hideScroll method to disable scrolling by setting an event listener
// to the window. As event listeners can only be removed by referencing the listener
// method and because vuetify this method is called on every state change of the dialog,
// we simply replace the method in this component instance
this.$refs.sheet.hideScroll = this.$refs.sheet.showScroll;
},
computed: {
show() {
return this.celeryProgressByUser && this.celeryProgressByUser.length > 0;
......
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