UNPKG

generator-ember-plus

Version:

Yeoman generator for Ember with added functionality

19 lines (16 loc) 614 B
<%= _.classify(appname) %>.ApplicationController = Ember.Controller.extend({ loginModalButtons: [ Ember.Object.create({title: 'Submit', clicked:"loginModalSubmit"}), Ember.Object.create({title: 'Cancel', clicked:"cancel", dismiss: 'modal'}) ], actions: { //Submit the modal loginModalSubmit: function () { Bootstrap.ModalManager.hide('loginModal'); // THIS IS IMPORTANT! it will cause the action to bubble to our route so we can really authenticate the user return true; }, cancel: function () { } } });