Browse Source

feat: support create database for zilliz cloud dedicated server (#805)

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 3 months ago
parent
commit
b009d3d48e

+ 1 - 0
client/src/components/layout/Header.tsx

@@ -72,6 +72,7 @@ const Title = styled(Typography)(({ theme }) => ({
 const DatabaseSelector = styled(CustomSelector)(({ theme }) => ({
 const DatabaseSelector = styled(CustomSelector)(({ theme }) => ({
   transform: 'translateY(-4px)',
   transform: 'translateY(-4px)',
   width: 'auto',
   width: 'auto',
+  minWidth: 120,
   '& .MuiInputLabel-root': {
   '& .MuiInputLabel-root': {
     top: '4px',
     top: '4px',
   },
   },

+ 1 - 1
client/src/pages/home/DatabaseCard.tsx

@@ -150,7 +150,7 @@ const DatabaseCard: FC<DatabaseCardProps> = ({
       <section
       <section
         className={`${wrapperClass} ${classes.wrapper} ${classes.create}`}
         className={`${wrapperClass} ${classes.wrapper} ${classes.create}`}
         onClick={() => {
         onClick={() => {
-          if (isManaged) {
+          if (isServerless) {
             // go to https://cloud.zilliz.com/orgs/
             // go to https://cloud.zilliz.com/orgs/
             window.open('https://cloud.zilliz.com/', '_blank');
             window.open('https://cloud.zilliz.com/', '_blank');
             return;
             return;