mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +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
|
// still we warn the user of this component
|
||||||
console.warn('createBlobRoutine was not defined for ReactS3FineUploader. Continuing without creating the blob on the server.');
|
console.warn('createBlobRoutine was not defined for ReactS3FineUploader. Continuing without creating the blob on the server.');
|
||||||
resolve();
|
resolve();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.fetch(createBlobRoutine.url, {
|
window.fetch(createBlobRoutine.url, {
|
||||||
|
@ -108,7 +108,7 @@ const PRRegisterPieceForm = React.createClass({
|
|||||||
})
|
})
|
||||||
.then(() => this.history.pushState(null, `/pieces/${this.state.piece.id}`))
|
.then(() => this.history.pushState(null, `/pieces/${this.state.piece.id}`))
|
||||||
.catch(() => {
|
.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);
|
GlobalNotificationActions.appendGlobalNotification(notificationMessage);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -311,7 +311,7 @@ const PRRegisterPieceForm = React.createClass({
|
|||||||
createBlobRoutine={this.getCreateBlobRoutine()}
|
createBlobRoutine={this.getCreateBlobRoutine()}
|
||||||
keyRoutine={{
|
keyRoutine={{
|
||||||
url: AppConstants.serverUrl + 's3/key/',
|
url: AppConstants.serverUrl + 's3/key/',
|
||||||
fileClass: 'other_data'
|
fileClass: 'otherdata'
|
||||||
}}
|
}}
|
||||||
validation={{
|
validation={{
|
||||||
itemLimit: AppConstants.fineUploader.validation.registerWork.itemLimit,
|
itemLimit: AppConstants.fineUploader.validation.registerWork.itemLimit,
|
||||||
@ -333,7 +333,7 @@ const PRRegisterPieceForm = React.createClass({
|
|||||||
createBlobRoutine={this.getCreateBlobRoutine()}
|
createBlobRoutine={this.getCreateBlobRoutine()}
|
||||||
keyRoutine={{
|
keyRoutine={{
|
||||||
url: AppConstants.serverUrl + 's3/key/',
|
url: AppConstants.serverUrl + 's3/key/',
|
||||||
fileClass: 'other_data'
|
fileClass: 'otherdata'
|
||||||
}}
|
}}
|
||||||
validation={{
|
validation={{
|
||||||
itemLimit: AppConstants.fineUploader.validation.registerWork.itemLimit,
|
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