Skip to content

Commit 60e998e

Browse files
committed
Updated actions on the app controller.
1 parent 384f4cf commit 60e998e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

MarvelWorld-Cli/app/routes/application.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ import Ember from 'ember';
22

33
export default Ember.Route.extend({
44
actions: {
5-
openModal: function(modalName, model) {
6-
this.controllerFor(modalName).set('model', model);
7-
return this.render(modalName, {
5+
openModal: function(controller, model) {
6+
this.controllerFor(controller).set('model', model);
7+
return this.render(controller, {
88
into: 'application',
99
outlet: 'modal'
1010
});
1111
},
12-
1312
closeModal: function() {
1413
return this.disconnectOutlet({
1514
outlet: 'modal',

0 commit comments

Comments
 (0)