mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
bug fix acls
otherdata frontend MIGRATE + loaddate whitelabel
This commit is contained in:
parent
1f1a8b7761
commit
5b2ab6c1e2
@ -165,7 +165,7 @@ let Edition = React.createClass({
|
||||
title={getLangText('Further Details')}
|
||||
show={this.props.edition.acl.acl_edit
|
||||
|| Object.keys(this.props.edition.extra_data).length > 0
|
||||
|| this.props.edition.other_data !== null}>
|
||||
|| this.props.edition.other_data.length > 0}>
|
||||
<EditionFurtherDetails
|
||||
editable={this.props.edition.acl.acl_edit}
|
||||
pieceId={this.props.edition.parent}
|
||||
|
@ -51,7 +51,6 @@ let FurtherDetails = React.createClass({
|
||||
},
|
||||
|
||||
render() {
|
||||
//return (<span />);
|
||||
return (
|
||||
<Row>
|
||||
<Col md={12} className="ascribe-edition-personal-note">
|
||||
|
@ -33,8 +33,8 @@ let FurtherDetailsFileuploader = React.createClass({
|
||||
//
|
||||
// 1. there is no other_data => do not show the fileuploader at all
|
||||
// 2. there is other_data, but user has no edit rights => show fileuploader but without action buttons
|
||||
// 3. both other_data and editable are defined or true => show fileuploade with all action buttons
|
||||
if (!this.props.editable && !this.props.otherData){
|
||||
// 3. both other_data and editable are defined or true => show fileuploader with all action buttons
|
||||
if (!this.props.editable && (!this.props.otherData || this.props.otherData.length == 0)){
|
||||
return null;
|
||||
}
|
||||
let otherDataIds = this.props.otherData ? this.props.otherData.map((data)=>{return data.id; }).join() : null;
|
||||
|
@ -183,7 +183,7 @@ let PieceContainer = React.createClass({
|
||||
title="Further Details"
|
||||
show={this.state.piece.acl.acl_edit
|
||||
|| Object.keys(this.state.piece.extra_data).length > 0
|
||||
|| this.state.piece.other_data !== null}
|
||||
|| this.state.piece.other_data.length > 0}
|
||||
defaultExpanded={true}>
|
||||
<FurtherDetails
|
||||
editable={this.state.piece.acl.acl_edit}
|
||||
|
@ -20,7 +20,7 @@ let WalletApp = React.createClass({
|
||||
header = (
|
||||
<div className="hero"/>);
|
||||
} else {
|
||||
header = <Header showAddWork={false} />;
|
||||
header = <Header showAddWork={true} />;
|
||||
}
|
||||
return (
|
||||
<div className="container ascribe-prize-app">
|
||||
|
Loading…
Reference in New Issue
Block a user