Skip to content

Commit

Permalink
Make caching optional (#811)
Browse files Browse the repository at this point in the history
* Make caching optional

* Update dist
  • Loading branch information
jumasheff committed Oct 1, 2021
1 parent a36ee55 commit 4502685
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion orchestra/static/dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -67149,7 +67149,8 @@ function todoApi($http) {
});
},
list: function list(projectId) {
return $http.get(listCreate(projectId), { cache: true }).then(function (response) {
var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
return $http.get(listCreate(projectId), { cache: cache }).then(function (response) {
return response.data;
});
},
Expand Down
2 changes: 1 addition & 1 deletion orchestra/static/orchestra/todos/todos.service.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function todoApi ($http) {
return {
create: (todo) => $http.post(listCreate(), todo)
.then(response => response.data),
list: (projectId) => $http.get(listCreate(projectId), {cache: true})
list: (projectId, cache = true) => $http.get(listCreate(projectId), {cache: cache})
.then(response => response.data),
update: (todo) => $http.put(details(todo.id), todo),
delete: (todo) => $http.delete(details(todo.id))
Expand Down

0 comments on commit 4502685

Please sign in to comment.