diff --git a/src/views/galleria/GalleriaAdvancedDemo.vue b/src/views/galleria/GalleriaAdvancedDemo.vue index 1e3b58a5b..7a15f6abb 100644 --- a/src/views/galleria/GalleriaAdvancedDemo.vue +++ b/src/views/galleria/GalleriaAdvancedDemo.vue @@ -12,7 +12,7 @@ :showThumbnails="showThumbnails" :showItemNavigators="true" :showItemNavigatorsOnHover="true" :circular="true" :autoPlay="true" :transitionInterval="3000"> @@ -45,7 +176,7 @@ export default { images: null, activeIndex: 0, showThumbnails: false, - isPreviewFullScreen: false + fullScreen: false } }, galleriaService: null, @@ -61,17 +192,17 @@ export default { this.showThumbnails = !this.showThumbnails; }, toggleFullScreen() { - if (this.isPreviewFullScreen) { - this.closePreviewFullScreen(); + if (this.fullScreen) { + this.closeFullScreen(); } else { - this.openPreviewFullScreen(); + this.openFullScreen(); } }, onFullScreenChange() { - this.isPreviewFullScreen = !this.isPreviewFullScreen; + this.fullScreen = !this.fullScreen; }, - openPreviewFullScreen() { + openFullScreen() { let elem = this.$refs.galleria.$el; if (elem.requestFullscreen) { elem.requestFullscreen(); @@ -86,7 +217,7 @@ export default { elem.msRequestFullscreen(); } }, - closePreviewFullScreen() { + closeFullScreen() { if (document.exitFullscreen) { document.exitFullscreen(); } @@ -115,10 +246,10 @@ export default { }, computed: { galleriaClass() { - return ['custom-galleria', {'preview-fullscreen': this.isPreviewFullScreen}]; + return ['custom-galleria', {'fullscreen': this.fullScreen}]; }, fullScreenIcon() { - return `pi ${this.isPreviewFullScreen ? 'pi-window-minimize' : 'pi-window-maximize'}`; + return `pi ${this.fullScreen ? 'pi-window-minimize' : 'pi-window-maximize'}`; } } } @@ -127,82 +258,60 @@ export default {