Skip to content

Commit

Permalink
Merge pull request #11529 from ShivangRawat30/#11328
Browse files Browse the repository at this point in the history
changed KResponsiveWindow to useKResponsiveWindow in Pdf Viewer plugin
  • Loading branch information
MisRob authored Nov 22, 2023
2 parents 6250574 + d2d4804 commit 4de6c2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,4 @@ If you have contributed to Kolibri, feel free to add your name and Github accoun
| Kris Katkus | katkuskris |
| Garvit Singhal | GarvitSinghal47 |
| Adars T S | a6ar55 |
| Shivang Rawat | ShivangRawat30 |
11 changes: 9 additions & 2 deletions kolibri/plugins/pdf_viewer/assets/src/views/PdfRendererIndex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
// polyfill necessary for recycle list
import 'intersection-observer';
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings';
import responsiveWindowMixin from 'kolibri.coreVue.mixins.responsiveWindowMixin';
import useKResponsiveWindow from 'kolibri.coreVue.composables.useKResponsiveWindow';
import CoreFullscreen from 'kolibri.coreVue.components.CoreFullscreen';
import '../utils/domPolyfills';
import { EventBus } from '../utils/event_utils';
Expand All @@ -146,7 +146,14 @@
RecycleList,
CoreFullscreen,
},
mixins: [responsiveWindowMixin, commonCoreStrings],
mixins: [commonCoreStrings],
setup() {
const { windowIsLarge, windowIsSmall } = useKResponsiveWindow();
return {
windowIsLarge,
windowIsSmall,
};
},
data: () => ({
progress: null,
scale: null,
Expand Down

0 comments on commit 4de6c2f

Please sign in to comment.