Skip to content

Commit

Permalink
UIBULKED-497: fix сomment
Browse files Browse the repository at this point in the history
  • Loading branch information
UladzislauKutarkin committed Oct 24, 2024
1 parent cf68908 commit 70446f0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
max-width: 1024px;
}

.previewLoading {
display: flex;
justify-content: center;
align-items: center;
}

.previewModalFooter {
width: 100%;
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ export const BulkEditPreviewModal = ({
}
};

const isModalButtonDisabled = !hasLinkForDownload || isPreviewLoading || bulkDetails?.status === JOB_STATUSES.DATA_MODIFICATION_IN_PROGRESS;

return (
<Modal
size="large"
Expand All @@ -75,8 +77,8 @@ export const BulkEditPreviewModal = ({
<BulkEditPreviewModalFooter
downloadLabel={downloadLabel}
bulkOperationId={bulkDetails?.id}
isCommitBtnDisabled={!hasLinkForDownload || isPreviewLoading || bulkDetails?.status === JOB_STATUSES.DATA_MODIFICATION_IN_PROGRESS}
isDownloadBtnDisabled={!hasLinkForDownload || isPreviewLoading || bulkDetails?.status === JOB_STATUSES.DATA_MODIFICATION_IN_PROGRESS}
isCommitBtnDisabled={isModalButtonDisabled}
isDownloadBtnDisabled={isModalButtonDisabled}
onSave={handleBulkOperationStart}
onDownload={onDownload}
onKeepEditing={onKeepEditing}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from 'react-intl';

import {
Layout,
Loading,
MessageBanner,
MultiColumnList
Expand Down Expand Up @@ -123,9 +124,9 @@ export const BulkEditPreviewModalList = ({
</>
)
:
<div className={css.previewLoading}>
<Layout className="flex centerContent">
<Loading size="large" />
</div>
</Layout>
);
};

Expand Down
2 changes: 1 addition & 1 deletion src/constants/selectOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export const getItemStatusOptions = (formatMessage) => [
disabled: false,
},
{
value: 'IN_PROCESS',
value: 'In process',
label: formatMessage({ id: 'ui-bulk-edit.layer.options.inProcess' }),
disabled: false,
},
Expand Down

0 comments on commit 70446f0

Please sign in to comment.