Advertisement
bhalash

Untitled

Mar 21st, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $scope.getPods = function() {
  2.   $scope.customer.forEach(customer => {
  3.     $scope.$http.get(`/lists/pods/${customer.shortname}/ms`).then(response => {
  4.       console.log(`Got back ${response.data.length} pods`);
  5.     });
  6.   });
  7. }
  8.  
  9.   destroy({ commit }, post) {
  10.     return new Promise((resolve, reject) => {
  11.       Vue.http.delete(`/api/v1/posts/${post.id}`)
  12.         .catch(reject)
  13.         .then(response => {
  14.           commit('destroy', post);
  15.           resolve(response);
  16.         });
  17.     });
  18.   },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement