Add proposal form

Closes #6

Form can be prefilled using query params on the route. The params are
`recipient`, `amount`, `url` and `ipfsHash`.
This commit is contained in:
2017-05-03 11:50:05 +02:00
parent e6740d9b4f
commit 969ef8d1ed
14 changed files with 232 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
import Ember from 'ember';
import Proposal from 'kredits-web/models/proposal';
export default Ember.Route.extend({
model(params) {
return Proposal.create({
recipientAddress: params.recipient,
amount: params.amount,
url: params.url,
ipfsHash: params.ipfsHash
});
}
});