Update ActivityPropertyUIHintResolver to use renamed ActivityInputUIHints

This commit is contained in:
Sipke Schoorstra 2021-05-31 10:18:22 +02:00
parent f63d264dc4
commit df8d85f183

View file

@ -18,18 +18,18 @@ namespace Elsa.Metadata
var type = activityPropertyInfo.PropertyType;
if (type == typeof(bool) || type == typeof(bool?))
return ActivityPropertyUIHints.Checkbox;
return ActivityInputUIHints.Checkbox;
if (type == typeof(string))
return ActivityPropertyUIHints.SingleLine;
return ActivityInputUIHints.SingleLine;
if (typeof(IEnumerable).IsAssignableFrom(type))
return ActivityPropertyUIHints.Dropdown;
return ActivityInputUIHints.Dropdown;
if (type.IsEnum || type.IsNullableType() && type.GetTypeOfNullable().IsEnum)
return ActivityPropertyUIHints.Dropdown;
return ActivityInputUIHints.Dropdown;
return ActivityPropertyUIHints.SingleLine;
return ActivityInputUIHints.SingleLine;
}
}
}