mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +01:00
add download button to contract list
This commit is contained in:
parent
1c5b0c7172
commit
12e7c2c898
@ -105,6 +105,12 @@ let ContractSettings = React.createClass({
|
|||||||
<button className="btn btn-default btn-sm margin-left-2px">
|
<button className="btn btn-default btn-sm margin-left-2px">
|
||||||
UPDATE
|
UPDATE
|
||||||
</button>
|
</button>
|
||||||
|
<a
|
||||||
|
className="btn btn-default btn-sm margin-left-2px"
|
||||||
|
href={contract.blob.url_safe}
|
||||||
|
target="_blank">
|
||||||
|
DOWNLOAD
|
||||||
|
</a>
|
||||||
<button
|
<button
|
||||||
className="btn btn-default btn-sm margin-left-2px"
|
className="btn btn-default btn-sm margin-left-2px"
|
||||||
onClick={this.removeContract(contract)}>
|
onClick={this.removeContract(contract)}>
|
||||||
@ -129,19 +135,25 @@ let ContractSettings = React.createClass({
|
|||||||
content={contract.name}
|
content={contract.name}
|
||||||
buttons={
|
buttons={
|
||||||
<div className="pull-right">
|
<div className="pull-right">
|
||||||
<button className="btn btn-default btn-sm margin-left-2px">
|
|
||||||
UPDATE
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
className="btn btn-default btn-sm margin-left-2px"
|
|
||||||
onClick={this.removeContract(contract)}>
|
|
||||||
REMOVE
|
|
||||||
</button>
|
|
||||||
<button
|
<button
|
||||||
className="btn btn-default btn-sm margin-left-2px"
|
className="btn btn-default btn-sm margin-left-2px"
|
||||||
onClick={this.makeContractPublic(contract)}>
|
onClick={this.makeContractPublic(contract)}>
|
||||||
MAKE PUBLIC
|
MAKE PUBLIC
|
||||||
</button>
|
</button>
|
||||||
|
<button className="btn btn-default btn-sm margin-left-2px">
|
||||||
|
UPDATE
|
||||||
|
</button>
|
||||||
|
<a
|
||||||
|
className="btn btn-default btn-sm margin-left-2px"
|
||||||
|
href={contract.blob.url_safe}
|
||||||
|
target="_blank">
|
||||||
|
DOWNLOAD
|
||||||
|
</a>
|
||||||
|
<button
|
||||||
|
className="btn btn-default btn-sm margin-left-2px"
|
||||||
|
onClick={this.removeContract(contract)}>
|
||||||
|
REMOVE
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
leftColumnWidth="40%"
|
leftColumnWidth="40%"
|
||||||
|
Loading…
Reference in New Issue
Block a user