From 472ff2c0bbe5454637468bfbd18c14758742bcc5 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 12 Jun 2024 01:14:40 +0300 Subject: [PATCH] Set slim as default --- apps/showcase/components/landing/HeroSection.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/apps/showcase/components/landing/HeroSection.vue b/apps/showcase/components/landing/HeroSection.vue index c93877c12..960b65ff8 100644 --- a/apps/showcase/components/landing/HeroSection.vue +++ b/apps/showcase/components/landing/HeroSection.vue @@ -90,7 +90,7 @@ } ]" > - + Slim Mode @@ -151,7 +151,7 @@ export default { { icon: 'pi pi-cog', title: 'Settings' } ], selectedSampleAppsSidebarNav: 'Overview', - isSlimMenu: false, + isSlimMenu: true, isSlimMenuSelected: false, sampleOptions: [ { icon: 'pi pi-home', title: 'Overview', src: 'https://www.primefaces.org/cdn/primevue/images/landing/apps/sampleshots/overview' }, @@ -163,14 +163,14 @@ export default { ], selectedSampleOption: { icon: 'pi pi-home', title: 'Overview', src: 'https://www.primefaces.org/cdn/primevue/images/landing/apps/sampleshots/overview' } }; - }, + } /*, beforeUnmount() { window.removeEventListener('resize', this.handleResize); }, mounted() { window.addEventListener('resize', this.handleResize); this.handleResize(); - }, + },*/, methods: { setSelectedSampleAppsSidebarNav(title) { this.selectedSampleAppsSidebarNav = title; @@ -186,10 +186,6 @@ export default { toggleSlimMenu() { this.isSlimMenu = !this.isSlimMenu; this.isSlimMenuSelected = this.isSlimMenu; - }, - changeMenu() { - this.isSlimMenu = !this.isSlimMenu; - this.isSlimMenuSelected = this.isSlimMenu; } } };