(limit: number)
| 189 | }; |
| 190 | }; |
| 191 | export const fetchPluginData = (limit: number) => { |
| 192 | return (dispatch: any) => { |
| 193 | const project_base_url = 'api/v1' |
| 194 | dispatch(fetchPluginRequest()); |
| 195 | request.get(`${project_base_url}/bundle_instances?limit=${limit}`) |
| 196 | .then(response => { |
| 197 | dispatch(fetchPluginSuccess(response)); |
| 198 | }) |
| 199 | .catch(error => { |
| 200 | dispatch(fetchPluginFailure(error.message)); |
| 201 | }); |
| 202 | }; |
| 203 | }; |
| 204 | export const setLoaded = (loaded: any) => { |
| 205 | return { |
| 206 | type: 'SET_LOADED', |
no test coverage detected