Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.getPods = function() {
- $scope.customer.forEach(customer => {
- $scope.$http.get(`/lists/pods/${customer.shortname}/ms`).then(response => {
- console.log(`Got back ${response.data.length} pods`);
- });
- });
- }
- destroy({ commit }, post) {
- return new Promise((resolve, reject) => {
- Vue.http.delete(`/api/v1/posts/${post.id}`)
- .catch(reject)
- .then(response => {
- commit('destroy', post);
- resolve(response);
- });
- });
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement