Skip to content

Commit

Permalink
fixes the css classname
Browse files Browse the repository at this point in the history
  • Loading branch information
ramprasadagarwal committed Jan 28, 2025
1 parent 9ea68e2 commit 16441ef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@use 'variables' as vars;

.antd.cuix {
.change-owner-group {
.hue-change-owner-group {
display: flex;
flex-direction: column;
flex: 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ const ChangeOwnerAndGroupModal = ({
const isSubmitEnabled = useMemo(() => {
return Boolean(
selectedUser &&
selectedGroup &&
!(selectedUser === OTHERS_KEY && !userOther) &&
!(selectedGroup === OTHERS_KEY && !groupOther)
selectedGroup &&

Check failure on line 123 in desktop/core/src/desktop/js/apps/storageBrowser/StorageDirectoryPage/StorageBrowserActions/ChangeOwnerAndGroupModal/ChangeOwnerAndGroupModal.tsx

View workflow job for this annotation

GitHub Actions / build

Insert `··`
!(selectedUser === OTHERS_KEY && !userOther) &&

Check failure on line 124 in desktop/core/src/desktop/js/apps/storageBrowser/StorageDirectoryPage/StorageBrowserActions/ChangeOwnerAndGroupModal/ChangeOwnerAndGroupModal.tsx

View workflow job for this annotation

GitHub Actions / build

Insert `··`
!(selectedGroup === OTHERS_KEY && !groupOther)

Check failure on line 125 in desktop/core/src/desktop/js/apps/storageBrowser/StorageDirectoryPage/StorageBrowserActions/ChangeOwnerAndGroupModal/ChangeOwnerAndGroupModal.tsx

View workflow job for this annotation

GitHub Actions / build

Insert `··`
);
}, [selectedUser, selectedGroup, userOther, groupOther]);

Expand All @@ -138,8 +138,8 @@ const ChangeOwnerAndGroupModal = ({
okButtonProps={{ disabled: loading || !isSubmitEnabled }}
cancelButtonProps={{ disabled: loading }}
>
<div className="change-owner-group">
<span className="change-owner-group__header-note">
<div className="hue-change-owner-group">
<span className="hue-change-owner-group__header-note">
{t(
'Note: Only the Hadoop superuser, "{{superuser}}" or the HDFS supergroup, "{{supergroup}}" on this file system, may change the owner of a file.',
{
Expand All @@ -149,10 +149,10 @@ const ChangeOwnerAndGroupModal = ({
)}
</span>

<div className="change-owner-group__form">
<div className="change-owner-group__entity">
<div className="change-owner-group__label">{t('User')}</div>
<div className="change-owner-group__dropdown">
<div className="hue-change-owner-group__form">
<div className="hue-change-owner-group__entity">
<div className="hue-change-owner-group__label">{t('User')}</div>
<div className="hue-change-owner-group__dropdown">
<Select options={usersOptions} onChange={setSelectedUser} value={selectedUser} />
{selectedUser === OTHERS_KEY && (
<Input
Expand All @@ -165,9 +165,9 @@ const ChangeOwnerAndGroupModal = ({
</div>
</div>

<div className="change-owner-group__entity">
<div className="change-owner-group__label">{t('Group')}</div>
<div className="change-owner-group__dropdown">
<div className="hue-change-owner-group__entity">
<div className="hue-change-owner-group__label">{t('Group')}</div>
<div className="hue-change-owner-group__dropdown">
<Select options={groupOptions} onChange={setSelectedGroup} value={selectedGroup} />
{selectedGroup === OTHERS_KEY && (
<Input
Expand All @@ -180,8 +180,8 @@ const ChangeOwnerAndGroupModal = ({
</div>
</div>

<div className="change-owner-group__checkbox">
<span className="change-owner-group__label">{t('Recursive')}</span>
<div className="hue-change-owner-group__checkbox">
<span className="hue-change-owner-group__label">{t('Recursive')}</span>
<Checkbox
checked={isRecursive}
onChange={() => setIsRecursive(prev => !prev)}
Expand Down

0 comments on commit 16441ef

Please sign in to comment.