mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
updates instances of overriding computed properties (#14675)
This commit is contained in:
@@ -35,9 +35,14 @@ export default Service.extend({
|
|||||||
clusterAdapter() {
|
clusterAdapter() {
|
||||||
return getOwner(this).lookup('adapter:cluster');
|
return getOwner(this).lookup('adapter:cluster');
|
||||||
},
|
},
|
||||||
|
// eslint-disable-next-line
|
||||||
tokens: computed(function () {
|
tokens: computed({
|
||||||
return this.getTokensFromStorage() || [];
|
get() {
|
||||||
|
return this._tokens || this.getTokensFromStorage() || [];
|
||||||
|
},
|
||||||
|
set(key, value) {
|
||||||
|
return (this._tokens = value);
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
generateTokenName({ backend, clusterId }, policies) {
|
generateTokenName({ backend, clusterId }, policies) {
|
||||||
|
|||||||
@@ -29,8 +29,14 @@ export function keyForCache(query) {
|
|||||||
|
|
||||||
export default Store.extend({
|
export default Store.extend({
|
||||||
// this is a map of map that stores the caches
|
// this is a map of map that stores the caches
|
||||||
lazyCaches: computed(function () {
|
// eslint-disable-next-line
|
||||||
return new Map();
|
lazyCaches: computed({
|
||||||
|
get() {
|
||||||
|
return this._lazyCaches || new Map();
|
||||||
|
},
|
||||||
|
set(key, value) {
|
||||||
|
return (this._lazyCaches = value);
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
setLazyCacheForModel(modelName, key, value) {
|
setLazyCacheForModel(modelName, key, value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user