[fix] type string with choices need to be displayed with select #1880

This commit is contained in:
ljf 2021-09-28 16:48:33 +02:00
parent 127ceefa02
commit 64ae24facd

View file

@ -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'],