-
Notifications
You must be signed in to change notification settings - Fork 24
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
Drag'n'drop import of multiple NML files #2908
Conversation
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.
Awesome, code looks good and it worked perfectly during my testing :) The error reporting could need a little tweak, see my suggestion.
<span className="ant-list-item-meta-description">({prettyBytes(file.size)})</span> | ||
</span> | ||
} | ||
description={`Last modification date: ${moment(file.lastModifiedDate).format( |
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.
After #2916 was merged, we should use the FormattedDate component here as well :)
// an error | ||
importActions.forEach(action => Store.dispatch(action)); | ||
} catch (e) { | ||
Toast.error(e.message); |
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.
Do you think it's possible to show which specific NML file caused the error? Right now, it's hard to find out which file to look at if the NML import fails with an error message.
<Modal | ||
title={`Import ${this.state.files.length} NML file(s)`} | ||
visible={this.state.files.length > 0} | ||
onOk={this.importNmls} |
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 dedicated submit button we should not need this, I think.
URL of deployed dev instance (used for testing):
Steps to test:
Issues:
Updated migration guide if applicable