Skip to content

Commit

Permalink
Remove download functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Pim Otte committed Apr 8, 2019
1 parent c0fc471 commit 33bd74e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions clerk-frontend/src/need-wizard/NeedWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,12 @@ class NeedWizard extends Component {
})
}

_download(type) {
if(type === 'paperWallet') {
let a = document.createElement('a');
document.body.appendChild(a);
a.download = this.state.personalDid+'.png';
a.href = this.state.canvas.toDataURL('image/png')
a.click()
} else {
window.alert('Download option ('+type+') not supported...')
}
}

renderButtons() {
let prevButton = <button onClick={this._prev}>Vorige</button>;
let nextButton = <button onClick={this._next}>Volgende</button>;
let wrongInfoButton = <button>Dit klopt niet!</button>;
let rightInfoButton = <button onClick={this._next}>Dit klopt!</button>;
let downloadButton = <button onClick={this._download.bind(this, 'paperWallet')}>Download</button>; // currently still mock
let downloadButton = <button>Download</button>; // currently still mock
let appleWalletButton = <button onClick={this._download.bind(this, 'appleWallet')}>Download naar Apple Wallet</button>;
let finishButton = <button onClick={this._first}>Afronden</button>;

Expand Down

0 comments on commit 33bd74e

Please sign in to comment.