mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] type string with choices need to be displayed with select #1880
This commit is contained in:
parent
127ceefa02
commit
64ae24facd
1 changed files with 7 additions and 1 deletions
|
@ -70,7 +70,13 @@ export function formatYunoHostArgument (arg) {
|
||||||
{
|
{
|
||||||
types: [undefined, 'string', 'path'],
|
types: [undefined, 'string', 'path'],
|
||||||
name: 'InputItem',
|
name: 'InputItem',
|
||||||
props: defaultProps.concat(['autocomplete', 'trim'])
|
props: defaultProps.concat(['autocomplete', 'trim', 'choices']),
|
||||||
|
callback: function () {
|
||||||
|
if (arg.choices) {
|
||||||
|
arg.type = 'select'
|
||||||
|
this.name = 'SelectItem'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
types: ['email', 'url', 'date', 'time', 'color'],
|
types: ['email', 'url', 'date', 'time', 'color'],
|
||||||
|
|
Loading…
Reference in a new issue