tethys.backend/resources/js/Stores/layout.js

15 lines
296 B
JavaScript
Raw Normal View History

2023-03-03 15:54:28 +00:00
import { defineStore } from 'pinia';
export const LayoutService = defineStore('layout', {
state: () => ({
isAsideMobileExpanded: false, // via action
isAsideLgActive: false,
}),
actions: {
asideMobileToggle() {
this.isAsideMobileExpanded = !this.isAsideMobileExpanded;
},
},
});