Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
feat(index): add a prop to enable/disable cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrutjes committed Aug 5, 2017
1 parent 98406fb commit 268c0b6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export default {
queryParameters: {
type: Object,
},
cache: {
type: Boolean,
default: true
}
},
data() {
return {
Expand Down Expand Up @@ -85,6 +89,12 @@ export default {
this._localSearchStore.queryParameters = this.queryParameters;
}
if (this.cache) {
this._localSearchStore.enableCache();
} else {
this._localSearchStore.disableCache();
}
return {
_searchStore: this._localSearchStore,
};
Expand Down

0 comments on commit 268c0b6

Please sign in to comment.