Skip to content

Commit

Permalink
Merge branch 'dev-4.2.3' into dev-4.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
HSunboy committed Jan 16, 2024
2 parents ed94cc6 + 54a8056 commit 62be5d5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/component/Task/DataArchiveTask/CreateModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ const CreateModal: React.FC<IProps> = (props) => {
projectId={projectId}
/>
</Space>
<Space direction="vertical" size={24}>
<Space direction="vertical" size={24} style={{ width: '100%' }}>
<ArchiveRange tables={tables} />
<VariableConfig form={form} />
</Space>
Expand Down
2 changes: 1 addition & 1 deletion src/component/Task/DataClearTask/CreateModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ const CreateModal: React.FC<IProps> = (props) => {
/*源端数据库*/ projectId={projectId}
/>
</Space>
<Space direction="vertical" size={24}>
<Space direction="vertical" size={24} style={{ width: '100%' }}>
<ArchiveRange tables={tables} />
<VariableConfig form={form} />
</Space>
Expand Down
9 changes: 5 additions & 4 deletions src/layout/SpaceContainer/Sider/MineItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ const MineItem: React.FC<IProps> = function ({
const [changePasswordLoading, setChangePasswordLoading] = useState(false);
const recordRef = useRef<RecordRef>();
const havePasswordLogin = !!settingStore.serverSystemInfo?.passwordLoginEnabled;
const hasUserInfo = !haveOCP() && !isClient();
const showUserInfo = !isClient();
const allowEditUser = !haveOCP() && showUserInfo;
const RoleNames = user?.roles?.length
? user?.roles
?.filter((item) => item.enabled)
Expand Down Expand Up @@ -101,7 +102,7 @@ const MineItem: React.FC<IProps> = function ({
}}
menu={
<Menu selectedKeys={null} key="user" className={!isClient() ? styles.userMenu : ''}>
{hasUserInfo && (
{showUserInfo && (
<>
<Menu.Item key={'username'}>
<Tooltip placement="right" title={userName}>
Expand All @@ -117,7 +118,7 @@ const MineItem: React.FC<IProps> = function ({
</>
)}

{hasUserInfo && havePasswordLogin ? (
{allowEditUser && havePasswordLogin ? (
<Menu.Item
onClick={() => {
setChangePasswordModalVisible(true);
Expand Down Expand Up @@ -171,7 +172,7 @@ const MineItem: React.FC<IProps> = function ({
)}

<Menu.Divider />
{hasUserInfo && (
{allowEditUser && (
<Menu.Item onClick={handleLogout} key={'exit'}>
{formatMessage({ id: 'odc.Sider.MineItem.Exit' }) /*退出*/}
</Menu.Item>
Expand Down
1 change: 1 addition & 0 deletions src/layout/SpaceContainer/Sider/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

.collapsedBtn {
position: absolute;
z-index: 1;
top: 300px;
right: -6px;
display: flex;
Expand Down

0 comments on commit 62be5d5

Please sign in to comment.