Skip to content

Commit

Permalink
Merge pull request #226 from olinlibrary/dev
Browse files Browse the repository at this point in the history
Make subscription button disappear when subscription is generated
  • Loading branch information
osteele committed May 9, 2018
2 parents e90cc23 + 768b93c commit a433eae
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/sidebar/generate-ics-pane.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,15 @@ export default class GenerateICSPane extends React.Component {
{/* <a className="ics-copy-to-clipboard" title="Copy feed URL" alt="Copy feed URL"
onClick={this.getFeedUrl}>Copy link to clipboard</a> */}
<br />
<br />
<input type="submit" className="button submit" value="Generate event feed" onClick={this.getFeedUrl} />

{!this.state.data.id && (
<input
type="submit"
style={{ marginTop: '16pt' }}
className="button submit"
value="Generate event feed"
onClick={this.getFeedUrl}
/>
)}
{this.state.data.id.length > 0 && (
<div>
<a
Expand Down

0 comments on commit a433eae

Please sign in to comment.