1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

Merge pull request #51 from ascribe/AD-1313-Add-marketplace-whitelabel-changes

AD-1313 Add marketplace whitelabel changes
This commit is contained in:
Tim Daubenschütz 2015-12-07 17:29:48 +01:00
commit c6443bb79d
4 changed files with 20 additions and 10 deletions

View File

@ -28,6 +28,7 @@ let RegisterPieceForm = React.createClass({
isFineUploaderActive: React.PropTypes.bool, isFineUploaderActive: React.PropTypes.bool,
isFineUploaderEditable: React.PropTypes.bool, isFineUploaderEditable: React.PropTypes.bool,
enableLocalHashing: React.PropTypes.bool, enableLocalHashing: React.PropTypes.bool,
enableSeparateThumbnail: React.PropTypes.bool,
// For this form to work with SlideContainer, we sometimes have to disable it // For this form to work with SlideContainer, we sometimes have to disable it
disabled: React.PropTypes.bool, disabled: React.PropTypes.bool,
@ -42,7 +43,8 @@ let RegisterPieceForm = React.createClass({
return { return {
headerMessage: getLangText('Register your work'), headerMessage: getLangText('Register your work'),
submitMessage: getLangText('Register work'), submitMessage: getLangText('Register work'),
enableLocalHashing: true enableLocalHashing: true,
enableSeparateThumbnail: true
}; };
}, },
@ -108,9 +110,10 @@ let RegisterPieceForm = React.createClass({
}, },
isThumbnailDialogExpanded() { isThumbnailDialogExpanded() {
const { enableSeparateThumbnail } = this.props;
const { digitalWorkFile } = this.state; const { digitalWorkFile } = this.state;
if(digitalWorkFile) { if(digitalWorkFile && enableSeparateThumbnail) {
const { type: mimeType } = digitalWorkFile; const { type: mimeType } = digitalWorkFile;
const mimeSubType = mimeType && mimeType.split('/').length ? mimeType.split('/')[1] const mimeSubType = mimeType && mimeType.split('/').length ? mimeType.split('/')[1]
: 'unknown'; : 'unknown';

View File

@ -119,12 +119,6 @@ let MarketAdditionalDataForm = React.createClass({
GlobalNotificationActions.appendGlobalNotification(notification); GlobalNotificationActions.appendGlobalNotification(notification);
}, },
uploadStarted() {
this.setState({
isUploadReady: false
});
},
setIsUploadReady(isReady) { setIsUploadReady(isReady) {
this.setState({ this.setState({
isUploadReady: isReady isUploadReady: isReady
@ -180,7 +174,6 @@ let MarketAdditionalDataForm = React.createClass({
{heading} {heading}
<FurtherDetailsFileuploader <FurtherDetailsFileuploader
label={getLangText('Marketplace Thumbnail Image')} label={getLangText('Marketplace Thumbnail Image')}
uploadStarted={this.uploadStarted}
submitFile={function () {}} submitFile={function () {}}
setIsUploadReady={this.setIsUploadReady} setIsUploadReady={this.setIsUploadReady}
isReadyForFormSubmission={formSubmissionValidation.atLeastOneUploadedFile} isReadyForFormSubmission={formSubmissionValidation.atLeastOneUploadedFile}

View File

@ -115,7 +115,6 @@ let MarketRegisterPiece = React.createClass({
render() { render() {
const { const {
isFineUploaderActive,
step, step,
whitelabel: { whitelabel: {
name: whitelabelName = 'Market' name: whitelabelName = 'Market'
@ -141,6 +140,7 @@ let MarketRegisterPiece = React.createClass({
headerMessage={getLangText('Consign to %s', whitelabelName)} headerMessage={getLangText('Consign to %s', whitelabelName)}
submitMessage={getLangText('Proceed to additional details')} submitMessage={getLangText('Proceed to additional details')}
isFineUploaderActive={true} isFineUploaderActive={true}
enableSeparateThumbnail={false}
handleSuccess={this.handleRegisterSuccess} handleSuccess={this.handleRegisterSuccess}
location={this.props.location}> location={this.props.location}>
<Property <Property

View File

@ -214,6 +214,7 @@ $vivi23--highlight-color: #de2600;
.btn-secondary { .btn-secondary {
border-color: $vivi23--button-default-color; border-color: $vivi23--button-default-color;
color: $vivi23--button-default-color;
&:hover, &:hover,
&:active, &:active,
@ -226,6 +227,7 @@ $vivi23--highlight-color: #de2600;
&.active.focus { &.active.focus {
background-color: $vivi23--button-default-color; background-color: $vivi23--button-default-color;
border-color: $vivi23--button-default-color; border-color: $vivi23--button-default-color;
color: $vivi23--bg-color;
} }
} }
@ -324,6 +326,18 @@ $vivi23--highlight-color: #de2600;
background-color: lighten($vivi23--fg-color, 20%); background-color: lighten($vivi23--fg-color, 20%);
} }
.ascribe-progress-bar span {
text-shadow: -1px 0 lighten($vivi23--fg-color, 20%),
0 1px lighten($vivi23--fg-color, 20%),
1px 0 lighten($vivi23--fg-color, 20%),
0 -1px lighten($vivi23--fg-color, 20%);
}
.action-file.icon-ascribe-ok,
.action-file.icon-ascribe-ok:hover {
color: lighten($vivi23--fg-color, 20%);
}
// spinner // spinner
.spinner-circle { .spinner-circle {
border-color: $vivi23--fg-color; border-color: $vivi23--fg-color;