Add support for Zoom display name in profiles #156

Merged
raucao merged 8 commits from feature/profile_zoom into master 2019-09-20 21:51:35 +00:00
3 changed files with 4 additions and 6 deletions
Showing only changes of commit f272bcfcbc - Show all commits
@@ -8,6 +8,7 @@ import { isAddress } from 'web3-utils';
export default Component.extend({
kredits: service(),
router: service(),
attributes: null,
@@ -75,6 +76,7 @@ export default Component.extend({
window.alert('Something went wrong. Please check the browser console.');
}).finally(() => {
this.set('inProgress', false);
this.router.transitionTo('dashboard');
});
}
+1 -3
View File
@@ -8,9 +8,7 @@ export default Controller.extend({
actions: {
save (attributes) {
return this.kredits
.updateContributor(this.model.id, attributes)
.then(() => this.transitionToRoute('index'))
return this.kredits.updateContributor(this.model.id, attributes);
}
}
+1 -3
View File
@@ -8,9 +8,7 @@ export default Controller.extend({
actions: {
save (contributor) {
return this.kredits
.addContributor(contributor)
.then(() => this.transitionToRoute('index'))
return this.kredits.addContributor(contributor);
}
galfert commented 2019-09-18 09:07:01 +00:00 (Migrated from github.com)
Review

Does this stay on the form page now, or is the transition happening somewhere else when editing or creating a new contributor?

Does this stay on the form page now, or is the transition happening somewhere else when editing or creating a new contributor?
raucao commented 2019-09-18 09:16:48 +00:00 (Migrated from github.com)
Review
Yes, I moved it to the component: https://github.com/67P/kredits-web/pull/156/files#diff-05b2a32d1311a3737ec444f68955ccedR81
}