-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ui-storagebrowser] adds extract archive action #3950
base: feat/storage-browser-12
Are you sure you want to change the base?
Conversation
expect(getByRole('button', { name: 'Extract' })).toBeInTheDocument(); | ||
}); | ||
|
||
it('should call handleExtract with the correct data when "Extract" is clicked', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with the correct "form data" or perhaps "with path and name"
onClose: () => void; | ||
} | ||
|
||
const ExtractAction = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would name it ExtractionModal or something along those line since extract is a verb and this is a modal based component
className="cuix antd" | ||
okText={t('Extract')} | ||
onCancel={onClose} | ||
onOk={() => handleExtract()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: onOk={handleExtract}
postOptions: { | ||
qsEncodeData: false, | ||
headers: { | ||
'Content-Type': 'multipart/form-data' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we using 'multipart/form-data'? We are not sending the actual file here right, just some key values as JSON data?
What changes were proposed in this pull request?
How was this patch tested?