Update ActivityPropertyUIHintResolver to use renamed ActivityInputUIHints
This commit is contained in:
parent
f63d264dc4
commit
df8d85f183
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue