index.js 450 B

123456789101112131415161718192021
  1. import Ember from 'ember';
  2. export default Ember.Controller.extend({
  3. actions: {
  4. testInfo: function() {
  5. this.get('toast').info(this.get('newFlash'));
  6. },
  7. testSuccess: function() {
  8. this.get('toast').success(this.get('newFlash'));
  9. },
  10. testWarning: function() {
  11. this.get('toast').warning(this.get('newFlash'));
  12. },
  13. testError: function() {
  14. this.get('toast').error(this.get('newFlash'));
  15. }
  16. }
  17. });