Icu 6896 upgrade ember data (#1511)

* chore: 🤖 Upgrade ember data to 3.28.12

✅ Closes: ICU-6896
This commit is contained in:
Zhihe Li authored and GitHub committed 2022-12-06 14:29:58 -05:00
1 parent 764f4703e0
commit 8ae6506abf
12 files changed
+168 -158

No files matched your search

+4 -2
View File
@@ -54,6 +54,10 @@ export default class BaseModel extends Model {
const id = this.scopeID;
return this.store.peekRecord('scope', id);
}
// Ember seems to have a bug with its internals and can't correctly set
// the `scopeModel` when passed in as part of the `inputProperties`
// of a `createRecord` call
set scopeModel(model) {
if (model) {
const json = model.serialize();
@@ -92,7 +96,6 @@ export default class BaseModel extends Model {
/**
* @type {boolean}
*/
@computed('hasDirtyAttributes', 'isSaving')
get canSave() {
return this.hasDirtyAttributes && !this.isSaving;
}
@@ -100,7 +103,6 @@ export default class BaseModel extends Model {
/**
* @type {boolean}
*/
@computed('canSave')
get cannotSave() {
return !this.canSave;
}