mirror of
https://github.com/ascribe/onion.git
synced 2024-12-31 09:07:48 +01:00
Small fixes for PR's otherdata fileClass
This commit is contained in:
parent
38ef18a192
commit
bee420a919
@ -344,6 +344,7 @@ const ReactS3FineUploader = React.createClass({
|
||||
// still we warn the user of this component
|
||||
console.warn('createBlobRoutine was not defined for ReactS3FineUploader. Continuing without creating the blob on the server.');
|
||||
resolve();
|
||||
return;
|
||||
}
|
||||
|
||||
window.fetch(createBlobRoutine.url, {
|
||||
|
@ -108,7 +108,7 @@ const PRRegisterPieceForm = React.createClass({
|
||||
})
|
||||
.then(() => this.history.pushState(null, `/pieces/${this.state.piece.id}`))
|
||||
.catch(() => {
|
||||
const notificationMessage = new GlobalNotificationModel(getLangText("Ups! We weren't able to send your submission. Contact: support@ascribe.io"), 'danger', 5000);
|
||||
const notificationMessage = new GlobalNotificationModel(getLangText("Oops! We weren't able to send your submission. Contact: support@ascribe.io"), 'danger', 5000);
|
||||
GlobalNotificationActions.appendGlobalNotification(notificationMessage);
|
||||
});
|
||||
},
|
||||
@ -311,7 +311,7 @@ const PRRegisterPieceForm = React.createClass({
|
||||
createBlobRoutine={this.getCreateBlobRoutine()}
|
||||
keyRoutine={{
|
||||
url: AppConstants.serverUrl + 's3/key/',
|
||||
fileClass: 'other_data'
|
||||
fileClass: 'otherdata'
|
||||
}}
|
||||
validation={{
|
||||
itemLimit: AppConstants.fineUploader.validation.registerWork.itemLimit,
|
||||
@ -333,7 +333,7 @@ const PRRegisterPieceForm = React.createClass({
|
||||
createBlobRoutine={this.getCreateBlobRoutine()}
|
||||
keyRoutine={{
|
||||
url: AppConstants.serverUrl + 's3/key/',
|
||||
fileClass: 'other_data'
|
||||
fileClass: 'otherdata'
|
||||
}}
|
||||
validation={{
|
||||
itemLimit: AppConstants.fineUploader.validation.registerWork.itemLimit,
|
||||
@ -372,4 +372,4 @@ const PRRegisterPieceForm = React.createClass({
|
||||
}
|
||||
});
|
||||
|
||||
export default PRRegisterPieceForm;
|
||||
export default PRRegisterPieceForm;
|
||||
|
Loading…
Reference in New Issue
Block a user