Don't allow hide pinned apps (#6528)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2024-09-11 20:35:35 +05:00 committed by GitHub
parent 682e4b3011
commit 655cf13229
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -68,7 +68,9 @@
const me = getCurrentAccount()
const filteredApps = apps.filter((it) => !hiddenAppsIds.includes(it._id) && isAppAllowed(it, me))
const filteredApps = apps.filter(
(it) => !hiddenAppsIds.includes(it._id) && isAppAllowed(it, me) && it.position !== 'top'
)
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->

View File

@ -43,9 +43,8 @@
const me = getCurrentAccount()
$: filteredApps = apps.filter((it) => !hiddenAppsIds.includes(it._id) && isAppAllowed(it, me))
$: topApps = filteredApps.filter((it) => it.position === 'top')
$: bottomdApps = filteredApps.filter((it) => it.position !== 'top')
$: topApps = apps.filter((it) => it.position === 'top')
$: bottomdApps = apps.filter((it) => !hiddenAppsIds.includes(it._id) && isAppAllowed(it, me) && it.position !== 'top')
</script>
<div class="flex-{direction === 'horizontal' ? 'row-center' : 'col-center'} clear-mins apps-{direction} relative">