Guest User

Untitled

a guest
Oct 15th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. {{#if showDialog}}
  2. {{#modal-dialog
  3. translucentOverlay=true
  4. containerClass="modal-dialog__container"
  5. overlayClass="modal-dialog__overlay"
  6. wrapperClass="modal-dialog"
  7. }}
  8.  
  9. <h1 class="modal-dialog__title">Type your goal here</h1>
  10. {{input class="settings-row__input"}}
  11.  
  12. <div class="wrap_buttons">
  13. <input {{action "cancelOrgGoal"}} type="button" name="Cancel" value="Cancel" class="btn btn_cancel">
  14. <input {{action "saveOrgGoal"}} type="button" name="Create" value="Select" class="btn btn_create">
  15. </div>
  16.  
  17. {{/modal-dialog}}
  18. {{/if}}
  19.  
  20. actions: {
  21. saveOrgGoal() {
  22. console.log('hi');
  23.  
  24. let orgGoal = store.createRecord('organization-goal', {
  25. description: 'Rails is Omakase',
  26. });
  27.  
  28. orgGoal.save(); // => POST to '/posts'
  29.  
  30. this.set('showDialog', true);
  31. },
  32. cancelOrgGoal() {
  33. console.log('hi');
  34. this.set('showDialog', false);
  35. }
  36. }
Add Comment
Please, Sign In to add comment