A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(Tag): Replace `slug_name` with `display_name` to display `tag` information
haitaooe8afba56f5a7
diff --git a/ui/src/components/Tag/index.tsx b/ui/src/components/Tag/index.tsxindex 67bd2805..d7f11d90 100644--- a/ui/src/components/Tag/index.tsx+++ b/ui/src/components/Tag/index.tsx@@ -30,7 +30,7 @@ const Index: FC<IProps> = ({data.recommend && 'badge-tag-required',className,)}>- <span className={textClassName}>{data.slug_name}</span>+ <span className={textClassName}>{data.display_name}</span></Link>);};diff --git a/ui/src/components/TagSelector/index.tsx b/ui/src/components/TagSelector/index.tsxindex 5a2279e5..a8bb0a6c 100644--- a/ui/src/components/TagSelector/index.tsx+++ b/ui/src/components/TagSelector/index.tsx@@ -202,7 +202,7 @@ const TagSelector: FC<IProps> = ({item.reserved ? 'danger' : item.recommend ? 'dark' : 'secondary'}`}size="sm">- {item.slug_name}+ {item.display_name}<span className="ms-1" onMouseUp={() => handleRemove(item)}>×</span>@@ -247,7 +247,7 @@ const TagSelector: FC<IProps> = ({eventKey={index}active={index === currentIndex}onClick={() => handleClick(item)}>- {item.slug_name}+ {item.display_name}</Dropdown.Item>);})}