mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-28 06:28:43 +01:00
24 lines
455 B
JavaScript
24 lines
455 B
JavaScript
import { ref } from 'vue'
|
|
import { defineStore } from 'pinia'
|
|
|
|
export const useLayoutStore = defineStore('layout', () => {
|
|
const leftMenuItems = ref([])
|
|
const compactLeftMenu = ref(false)
|
|
|
|
function setLeftMenuItems(items) {
|
|
leftMenuItems.value = items
|
|
}
|
|
|
|
async function $reset() {
|
|
leftMenuItems.value = []
|
|
compactLeftMenu.value = false
|
|
}
|
|
|
|
return {
|
|
leftMenuItems,
|
|
compactLeftMenu,
|
|
setLeftMenuItems,
|
|
$reset,
|
|
}
|
|
})
|