add user settings

This commit is contained in:
Simon Vieille
2025-04-13 20:32:13 +02:00
parent 6c4f9120ff
commit fdd8f8850d
20 changed files with 839 additions and 316 deletions
+4
View File
@@ -123,6 +123,8 @@ watch(
function getFiltredAndSortedApps(items, order, topMenuApps, topSideMenuApps) {
const data = []
console.log(order)
items.forEach((item) => {
if (topMenuApps.includes(item.id) && !topSideMenuApps.includes(item.id)) {
return
@@ -139,6 +141,8 @@ function getFiltredAndSortedApps(items, order, topMenuApps, topSideMenuApps) {
data.push(item)
})
console.log(data)
return data.sort((a, b) => {
return a.order < b.order ? -1 : 1
})