mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-02 13:52:40 +00: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 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>
|
</script>
|
||||||
|
|
||||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||||
|
@ -43,9 +43,8 @@
|
|||||||
|
|
||||||
const me = getCurrentAccount()
|
const me = getCurrentAccount()
|
||||||
|
|
||||||
$: filteredApps = apps.filter((it) => !hiddenAppsIds.includes(it._id) && isAppAllowed(it, me))
|
$: topApps = apps.filter((it) => it.position === 'top')
|
||||||
$: topApps = filteredApps.filter((it) => it.position === 'top')
|
$: bottomdApps = apps.filter((it) => !hiddenAppsIds.includes(it._id) && isAppAllowed(it, me) && it.position !== 'top')
|
||||||
$: bottomdApps = filteredApps.filter((it) => it.position !== 'top')
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex-{direction === 'horizontal' ? 'row-center' : 'col-center'} clear-mins apps-{direction} relative">
|
<div class="flex-{direction === 'horizontal' ? 'row-center' : 'col-center'} clear-mins apps-{direction} relative">
|
||||||
|
Loading…
Reference in New Issue
Block a user