Seed Support #56

Closed
ocnios wants to merge 173 commits from master into build
3 changed files with 9 additions and 14 deletions
Showing only changes of commit 7e8fdf625f - Show all commits

View file

@ -305,14 +305,6 @@ lbry.getMyClaims = function(callback) {
lbry.call('get_name_claims', {}, callback); lbry.call('get_name_claims', {}, callback);
} }
lbry.startFile = function(name, callback) {
lbry.call('start_lbry_file', { name: name }, callback);
}
lbry.stopFile = function(name, callback) {
lbry.call('stop_lbry_file', { name: name }, callback);
}
lbry.removeFile = function(outpoint, deleteTargetFile=true, callback) { lbry.removeFile = function(outpoint, deleteTargetFile=true, callback) {
this._removedFiles.push(outpoint); this._removedFiles.push(outpoint);
this._updateFileInfoSubscribers(outpoint); this._updateFileInfoSubscribers(outpoint);

View file

@ -84,7 +84,7 @@ var FeaturedContent = React.createClass({
<div className="row-fluid"> <div className="row-fluid">
<div className="span6"> <div className="span6">
<h3>Featured Content</h3> <h3>Featured Content</h3>
{ this.state.featuredNames.map((name) => { return <FileTile key={name} uri={name} /> }) } { this.state.featuredNames.map(name => <FileTile key={name} uri={name} />) }
</div> </div>
<div className="span6"> <div className="span6">
<h3> <h3>

View file

@ -340,12 +340,15 @@ var PublishPage = React.createClass({
<section className="card"> <section className="card">
<h4>LBRY Name</h4> <h4>LBRY Name</h4>
<div className="form-row"> <div className="form-row">
lbry://<FormField type="text" ref="name" value={this.state.rawName} onChange={this.handleNameChange} /> <FormField type="text" ref="name" value={this.state.rawName} onChange={this.handleNameChange} />
{ {
(!this.state.name ? '' : (!this.state.name
(! this.state.nameResolved ? <em> The name <strong>{this.state.name}</strong> is available.</em> ? null
: (this.state.myClaimExists ? <em> You already have a claim on the name <strong>{this.state.name}</strong>. You can use this page to update your claim.</em> : (!this.state.nameResolved
: <em> The name <strong>{this.state.name}</strong> is currently claimed for <strong>{this.state.topClaimValue}</strong> {this.state.topClaimValue == 1 ? 'credit' : 'credits'}.</em>))) ? <em> The name <strong>{this.state.name}</strong> is available.</em>
: (this.state.myClaimExists
? <em> You already have a claim on the name <strong>{this.state.name}</strong>. You can use this page to update your claim.</em>
: <em> The name <strong>{this.state.name}</strong> is currently claimed for <strong>{this.state.topClaimValue}</strong> {this.state.topClaimValue == 1 ? 'credit' : 'credits'}.</em>)))
} }
<div className="help">What LBRY name would you like to claim for this file?</div> <div className="help">What LBRY name would you like to claim for this file?</div>
</div> </div>