mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-28 11:35:05 +01:00
WIP: Webmail
This commit is contained in:
@@ -3,6 +3,7 @@ import { defineStore } from 'pinia'
|
||||
|
||||
export const useLayoutStore = defineStore('layout', () => {
|
||||
const leftMenuItems = ref([])
|
||||
const compactLeftMenu = ref(false)
|
||||
|
||||
function setLeftMenuItems(items) {
|
||||
leftMenuItems.value = items
|
||||
@@ -10,10 +11,12 @@ export const useLayoutStore = defineStore('layout', () => {
|
||||
|
||||
async function $reset() {
|
||||
leftMenuItems.value = []
|
||||
compactLeftMenu.value = false
|
||||
}
|
||||
|
||||
return {
|
||||
leftMenuItems,
|
||||
compactLeftMenu,
|
||||
setLeftMenuItems,
|
||||
$reset,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user