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