Skip to content

Commit

Permalink
fix admin settings page. #280
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 3, 2020
1 parent 8101ce5 commit fb32160
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
1 change: 0 additions & 1 deletion app/components/provider-show.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const organizationTypeList = [
'serviceProvider',
'other',
];

const memberTypeList = [
'consortium',
'consortium_organization',
Expand Down
4 changes: 4 additions & 0 deletions app/controllers/settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Controller from '@ember/controller';

export default Controller.extend({
});
5 changes: 3 additions & 2 deletions app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ Router.map(function() {
this.route('dois');
});
});

this.route('settings');
this.route('settings', function() {
this.route('index', { path: '/' });
});
this.route('sign-in');
this.route('authorize');
this.route('reset');
Expand Down
4 changes: 2 additions & 2 deletions app/routes/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default Route.extend({

model() {
let self = this;
return this.store.findRecord('provider', 'admin').then(function(admin) {
return admin;
return this.store.findRecord('provider', 'admin').then(function(model) {
return model;
}).catch(function(reason) {
console.debug(reason);

Expand Down

0 comments on commit fb32160

Please sign in to comment.