1
0
Fork 0
mirror of synced 2024-07-13 02:05:54 +12:00

Account for admin and builder status in users table

This commit is contained in:
Andrew Kingston 2022-08-05 09:19:08 +01:00
parent ee8bd9f599
commit 73b563ef19

View file

@ -1,13 +1,19 @@
<script>
import { Icon } from "@budibase/bbui"
import { apps } from "stores/portal"
export let value
export let row
$: priviliged = row?.admin?.global || row?.builder?.global
$: count = priviliged ? $apps.length : value?.length || 0
</script>
<div class="align">
<div class="spacing">
<Icon name="WebPage" />
</div>
{parseInt(value?.length) || 0}
{count}
</div>
<style>