Skip to content

Commit

Permalink
feat: closeByModel as private method
Browse files Browse the repository at this point in the history
  • Loading branch information
next-joserepresa authored and josex2r committed Oct 5, 2020
1 parent ba54c09 commit 7791d42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/components/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default class ModalComponent extends Component.extend({
return;
}

this.modal.closeByModel(this.model);
this.modal._closeByModel(this.model);
}

resolve(data, label = `Component '${this.model.fullname}': fulfillment`) {
Expand Down
2 changes: 1 addition & 1 deletion addon/services/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class ModalService extends Service.extend(Evented) {
return model.get('promise');
}

closeByModel(model) {
_closeByModel(model) {
this.trigger('close', model);
this.content.removeObject(model);
}
Expand Down

0 comments on commit 7791d42

Please sign in to comment.