This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/test by this push:
new 13c17f1d fix: Only the active issue list shows update time
13c17f1d is described below
commit 13c17f1d3ab76bfcee8f58b0464b8ca17151a0b3
Author: shuai <[email protected]>
AuthorDate: Fri Oct 18 15:08:15 2024 +0800
fix: Only the active issue list shows update time
---
ui/src/components/QuestionList/index.tsx | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/ui/src/components/QuestionList/index.tsx
b/ui/src/components/QuestionList/index.tsx
index 066711bb..82baea6a 100644
--- a/ui/src/components/QuestionList/index.tsx
+++ b/ui/src/components/QuestionList/index.tsx
@@ -118,9 +118,15 @@ const QuestionList: FC<Props> = ({
/>
•
<FormatTime
- time={li.operated_at}
+ time={
+ curOrder === 'active' ? li.operated_at : li.created_at
+ }
className="text-secondary ms-1 flex-shrink-0"
- preFix={t(li.operation_type)}
+ preFix={
+ curOrder === 'active'
+ ? t(li.operation_type)
+ : t('asked')
+ }
/>
</div>
<Counts