Skip to content

Commit

Permalink
Custom values for some User props
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Aug 22, 2024
1 parent 9ccc623 commit 9a71208
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions api/web/src/components/Admin/AdminUser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,25 @@
class='datagrid-title'
v-text='ele'
/>
<div
class='datagrid-content'
v-text='user[ele]'
/>

<template v-if='ele === "tak_loc"'>
<div
class='datagrid-content'
v-text='user.tak_loc ? user.tak_loc.coordinates.join(",") : "Unset"'
/>
</template>
<template v-else-if='ele === "agency_admin"'>
<div
class='datagrid-content'
v-text='user.agency_admin.length ? user.agency_admin : "None"'
/>
</template>
<template v-else>
<div
class='datagrid-content'
v-text='user[ele]'
/>
</template>
</div>
</template>
</div>
Expand Down

0 comments on commit 9a71208

Please sign in to comment.