Added support for managed metadata terms

This commit is contained in:
Mike Homol 2021-03-30 22:43:15 -04:00
parent 8c3968667b
commit c1df398a93
1 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,7 @@ const AdvancedPageProperties: React.FunctionComponent<IAdvancedPagePropertiesPro
var values: any[] = [];
if (allValues.hasOwnProperty(prop)) {
switch (field.TypeAsString) {
case "TaxonomyFieldTypeMulti":
case "MultiChoice":
values = _.clone(allValues[prop]);
break;
@ -166,6 +167,11 @@ const AdvancedPageProperties: React.FunctionComponent<IAdvancedPagePropertiesPro
<span>{new Date(val).toLocaleDateString()}</span>
);
}
case "TaxonomyFieldTypeMulti":
case "TaxonomyFieldType":
return (
<span className={styles.standardCapsule} style={{backgroundColor: semanticColors.accentButtonBackground, color: semanticColors.accentButtonText}}>{val.Label}</span>
);
default:
return (
<span className={styles.standardCapsule} style={{backgroundColor: semanticColors.accentButtonBackground, color: semanticColors.accentButtonText}}>{val}</span>