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

15 lines
341 B
TypeScript
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,
}),
2023-03-03 15:54:28 +00:00
actions: {
asideMobileToggle() {
this.isAsideMobileExpanded = !this.isAsideMobileExpanded;
},
},
2023-03-03 15:54:28 +00:00
});