Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {{#if showDialog}}
- {{#modal-dialog
- translucentOverlay=true
- containerClass="modal-dialog__container"
- overlayClass="modal-dialog__overlay"
- wrapperClass="modal-dialog"
- }}
- <h1 class="modal-dialog__title">Type your goal here</h1>
- {{input class="settings-row__input"}}
- <div class="wrap_buttons">
- <input {{action "cancelOrgGoal"}} type="button" name="Cancel" value="Cancel" class="btn btn_cancel">
- <input {{action "saveOrgGoal"}} type="button" name="Create" value="Select" class="btn btn_create">
- </div>
- {{/modal-dialog}}
- {{/if}}
- actions: {
- saveOrgGoal() {
- console.log('hi');
- let orgGoal = store.createRecord('organization-goal', {
- description: 'Rails is Omakase',
- });
- orgGoal.save(); // => POST to '/posts'
- this.set('showDialog', true);
- },
- cancelOrgGoal() {
- console.log('hi');
- this.set('showDialog', false);
- }
- }
Add Comment
Please, Sign In to add comment