Skip to content

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: axios timline for tag title change

shuai6d5c6d346786
diff --git a/ui/src/pages/Tags/Info/index.tsx b/ui/src/pages/Tags/Info/index.tsx
index f9430280..8e4a765a 100644
--- a/ui/src/pages/Tags/Info/index.tsx
+++ b/ui/src/pages/Tags/Info/index.tsx
@@ -137,7 +137,10 @@ const TagIntroduction = () => {
{isLogged && (
<Link
to={`/tags/${tagInfo?.tag_id}/timeline`}
- className="link-secondary btn-no-border p-0 fs-14 ms-3">
+ className={classNames(
+ 'link-secondary btn-no-border p-0 fs-14',
+ tagInfo?.member_actions?.length > 0 && 'ms-3',
+ )}>
{t('history')}
</Link>
)}
diff --git a/ui/src/pages/Timeline/index.tsx b/ui/src/pages/Timeline/index.tsx
index f365fa2b..2ba12c42 100644
--- a/ui/src/pages/Timeline/index.tsx
+++ b/ui/src/pages/Timeline/index.tsx
@@ -61,7 +61,7 @@ const Index: FC = () => {
timelineData?.object_info.main_tag_slug_name ||
timelineData?.object_info.title
}`;
- pageTitle = `${t('title_for_tag')} ${timelineData?.object_info.title}`;
+ pageTitle = `${t('title_for_tag')} '${timelineData?.object_info.title}'`;
}
const revisionList =