Set slim as default

pull/5880/head
Cagatay Civici 2024-06-12 01:14:40 +03:00
parent 355aa8f79e
commit 472ff2c0bb
1 changed files with 4 additions and 8 deletions

View File

@ -90,7 +90,7 @@
} }
]" ]"
> >
<a @click="toggleSlimMenu" class="cursor-pointer block p-0 m-0 leading-none"> <a v-if="false" @click="toggleSlimMenu" class="cursor-pointer block p-0 m-0 leading-none">
<i :class="isSlimMenu ? 'pi pi-window-maximize' : 'pi pi-window-minimize'"></i> <i :class="isSlimMenu ? 'pi pi-window-maximize' : 'pi pi-window-minimize'"></i>
<span :class="isSlimMenu ? 'hidden' : 'font-medium leading-8'"></span> <span :class="isSlimMenu ? 'hidden' : 'font-medium leading-8'"></span>
<span :class="isSlimMenu ? 'hidden' : 'font-medium leading-none'"> Slim Mode</span> <span :class="isSlimMenu ? 'hidden' : 'font-medium leading-none'"> Slim Mode</span>
@ -151,7 +151,7 @@ export default {
{ icon: 'pi pi-cog', title: 'Settings' } { icon: 'pi pi-cog', title: 'Settings' }
], ],
selectedSampleAppsSidebarNav: 'Overview', selectedSampleAppsSidebarNav: 'Overview',
isSlimMenu: false, isSlimMenu: true,
isSlimMenuSelected: false, isSlimMenuSelected: false,
sampleOptions: [ sampleOptions: [
{ icon: 'pi pi-home', title: 'Overview', src: 'https://www.primefaces.org/cdn/primevue/images/landing/apps/sampleshots/overview' }, { 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' } selectedSampleOption: { icon: 'pi pi-home', title: 'Overview', src: 'https://www.primefaces.org/cdn/primevue/images/landing/apps/sampleshots/overview' }
}; };
}, } /*,
beforeUnmount() { beforeUnmount() {
window.removeEventListener('resize', this.handleResize); window.removeEventListener('resize', this.handleResize);
}, },
mounted() { mounted() {
window.addEventListener('resize', this.handleResize); window.addEventListener('resize', this.handleResize);
this.handleResize(); this.handleResize();
}, },*/,
methods: { methods: {
setSelectedSampleAppsSidebarNav(title) { setSelectedSampleAppsSidebarNav(title) {
this.selectedSampleAppsSidebarNav = title; this.selectedSampleAppsSidebarNav = title;
@ -186,10 +186,6 @@ export default {
toggleSlimMenu() { toggleSlimMenu() {
this.isSlimMenu = !this.isSlimMenu; this.isSlimMenu = !this.isSlimMenu;
this.isSlimMenuSelected = this.isSlimMenu; this.isSlimMenuSelected = this.isSlimMenu;
},
changeMenu() {
this.isSlimMenu = !this.isSlimMenu;
this.isSlimMenuSelected = this.isSlimMenu;
} }
} }
}; };