mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 11:01:54 +03:00
Don't allow hide pinned apps (#6528)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
682e4b3011
commit
655cf13229
@ -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 -->
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user