Skip to content

Commit

Permalink
Merge pull request #174 from zilliztech/fix-replica
Browse files Browse the repository at this point in the history
fix replica toggle
  • Loading branch information
shanghaikid authored Mar 28, 2023
2 parents 0e463b1 + ec648e6 commit 71e3d88
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/src/i18n/en/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const navTrans = {
console: 'Search Console',
search: 'Vector Search',
system: 'System View',
user: 'User',
user: 'Milvus Users',
};

export default navTrans;
6 changes: 3 additions & 3 deletions client/src/i18n/en/user.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const userTrans = {
createTitle: 'Create User',
updateTitle: 'Update User',
user: 'User',
createTitle: 'Create Milvus User',
updateTitle: 'Update Milvus User',
user: 'Milvus User',
deleteWarning: 'You are trying to drop user. This action cannot be undone.',
oldPassword: 'Current Password',
newPassword: 'New Password',
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/connect/AuthForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const AuthForm = (props: any) => {
return [
...noAuthConfigs,
{
label: `${attuTrans.username} ${attuTrans.optional}`,
label: `Milvus ${attuTrans.username} ${attuTrans.optional}`,
key: 'username',
onChange: (value: string) => handleInputChange('username', value),
variant: 'filled',
Expand All @@ -120,7 +120,7 @@ export const AuthForm = (props: any) => {
defaultValue: form.username,
},
{
label: `${attuTrans.password} ${attuTrans.optional}`,
label: `Milvus ${attuTrans.password} ${attuTrans.optional}`,
key: 'password',
onChange: (value: string) => handleInputChange('password', value),
variant: 'filled',
Expand Down
3 changes: 3 additions & 0 deletions client/src/pages/dialogs/LoadCollectionDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ const LoadCollectionDialog = (props: any) => {
// toggle enbale replica
const handleChange = () => {
setReplicaToggle(!replicaToggle);
if (!replicaToggle === false) {
setForm({ replica: 0 });
}
};

const InfoIcon = icons.info;
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/user/User.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const Users = () => {

const toolbarConfigs: ToolBarConfig[] = [
{
label: 'Create user',
label: userTrans('createTitle'),
onClick: () => {
setDialog({
open: true,
Expand Down

0 comments on commit 71e3d88

Please sign in to comment.