Skip to content
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

Refactor upload accept #1156

Open
wants to merge 3 commits into
base: 2.3.0
Choose a base branch
from
Open

Refactor upload accept #1156

wants to merge 3 commits into from

Conversation

jochenklar
Copy link
Member

This PR refactors the accept field for import plugins to match the format of react-dropzone, e.g.:

    accept = {
        'application/xml': ['.xml'],
        'text/xml': ['.xml']
    }

It also contains minor renaming in projectActions.

@MyPyDavid MyPyDavid added this to the RDMO 2.3.0 milestone Sep 30, 2024
@jochenklar jochenklar changed the base branch from 2.3.0 to 2.2.2 October 18, 2024 13:59
@jochenklar jochenklar changed the base branch from 2.2.2 to 2.3.0 October 18, 2024 14:04
@jochenklar jochenklar force-pushed the refactor_upload_accept branch from 0cc9bb3 to d456f9f Compare November 19, 2024 11:18
@jochenklar jochenklar self-assigned this Nov 19, 2024
@jochenklar jochenklar marked this pull request as ready for review November 19, 2024 11:20
.then(importUrls => {
dispatch(fettchImportUrlsSuccess({ importUrls }))})
const action = (dispatch) => ProjectsApi.fetchDirectImportUrls().then(importUrls => {
dispatch(fettchImportUrlsSuccess(importUrls))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please fix my typo? fettch -> fetch

@@ -109,7 +109,7 @@ export function fetchImportUrlsInit() {
}

export function fettchImportUrlsSuccess(importUrls) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same typo as above. Please fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants