Account for admin and builder status in users table
This commit is contained in:
parent
ee8bd9f599
commit
73b563ef19
|
@ -1,13 +1,19 @@
|
||||||
<script>
|
<script>
|
||||||
import { Icon } from "@budibase/bbui"
|
import { Icon } from "@budibase/bbui"
|
||||||
|
import { apps } from "stores/portal"
|
||||||
|
|
||||||
export let value
|
export let value
|
||||||
|
export let row
|
||||||
|
|
||||||
|
$: priviliged = row?.admin?.global || row?.builder?.global
|
||||||
|
$: count = priviliged ? $apps.length : value?.length || 0
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="align">
|
<div class="align">
|
||||||
<div class="spacing">
|
<div class="spacing">
|
||||||
<Icon name="WebPage" />
|
<Icon name="WebPage" />
|
||||||
</div>
|
</div>
|
||||||
{parseInt(value?.length) || 0}
|
{count}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Reference in New Issue