Skip to content

Commit

Permalink
add computeds
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer authored and runspired committed Apr 9, 2021
1 parent d3a2349 commit b44fd1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/model/addon/-private/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ class Model extends EmberObject.extend(DeprecatedEvented) {
@type {Boolean}
@readOnly
*/
@computed()
get isError() {
if (REQUEST_SERVICE) {
let errorReq = this._errorRequests[this._errorRequests.length - 1];
Expand Down Expand Up @@ -442,6 +443,7 @@ class Model extends EmberObject.extend(DeprecatedEvented) {
@type {Boolean}
@readOnly
*/
@computed()
get isReloading() {
let meta = getRecordMeta(this);
let isReloading = get(meta, 'isReloading');
Expand Down Expand Up @@ -763,7 +765,7 @@ class Model extends EmberObject.extend(DeprecatedEvented) {
this.model.destroyRecord().then(function() {
this.transitionToRoute('model.index');
});
}
}
}
```
Expand Down

0 comments on commit b44fd1d

Please sign in to comment.