update user

This commit is contained in:
Nitwel
2020-09-07 21:24:31 +02:00
parent 83763920cd
commit 1e3e6478f0
2 changed files with 22 additions and 15 deletions

View File

@@ -13,21 +13,24 @@ export default defineDisplay(({ i18n }) => ({
name: i18n.t('display'),
type: 'string',
meta: {
width: 'half',
interface: 'dropdown',
options: [
{
text: i18n.t('avatar'),
value: 'avatar',
},
{
text: i18n.t('name'),
value: 'name',
},
{
text: i18n.t('both'),
value: 'both',
},
],
options: {
choices: [
{
text: i18n.t('displays.user.avatar'),
value: 'avatar',
},
{
text: i18n.t('displays.user.name'),
value: 'name',
},
{
text: i18n.t('displays.user.both'),
value: 'both',
},
],
},
},
schema: {
default_value: 'both',
@@ -40,7 +43,6 @@ export default defineDisplay(({ i18n }) => ({
meta: {
width: 'half',
interface: 'toggle',
default_value: false,
},
},
],

View File

@@ -18,6 +18,11 @@
},
"raw": {
"raw": "Raw Value"
},
"user": {
"avatar": "Avatar",
"name": "Name",
"both": "Both"
}
}
}