浏览代码

Merge pull request #627 from zilliztech/overview

update: change label Approx Count to Entity Count if the collection is loaded on the overview page
ryjiang 10 月之前
父节点
当前提交
b6754cf6a6
共有 1 个文件被更改,包括 10 次插入4 次删除
  1. 10 4
      client/src/pages/databases/collections/overview/Overview.tsx

+ 10 - 4
client/src/pages/databases/collections/overview/Overview.tsx

@@ -304,10 +304,16 @@ const Overview = () => {
 
 
           <div className={classes.block}>
           <div className={classes.block}>
             <Typography variant="h5">
             <Typography variant="h5">
-              {collectionTrans('rowCount')}
-              <CustomToolTip title={collectionTrans('entityCountInfo')}>
-                <Icons.question classes={{ root: classes.questionIcon }} />
-              </CustomToolTip>
+              {collection.loaded ? (
+                collectionTrans('count')
+              ) : (
+                <>
+                  {collectionTrans('rowCount')}
+                  <CustomToolTip title={collectionTrans('entityCountInfo')}>
+                    <Icons.question classes={{ root: classes.questionIcon }} />
+                  </CustomToolTip>
+                </>
+              )}
             </Typography>
             </Typography>
             <Typography variant="h6">{collection?.rowCount || '0'}</Typography>
             <Typography variant="h6">{collection?.rowCount || '0'}</Typography>
           </div>
           </div>