1c1f772ff5
* Adds a new page for updating profiles * Refactors the add-contributor component to allow for updating existing contributors * Adds input labels to the contributor form and improves placeholders * Adds event handlers for all contract contributor changes and uses them for updating the UI refs #122
19 lines
345 B
JavaScript
19 lines
345 B
JavaScript
import Controller from '@ember/controller';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default Controller.extend({
|
|
|
|
kredits: service(),
|
|
|
|
actions: {
|
|
|
|
save (contributor) {
|
|
return this.kredits
|
|
.addContributor(contributor)
|
|
.then(() => this.transitionToRoute('index'))
|
|
}
|
|
|
|
}
|
|
|
|
});
|