webpack/scenes/Organizations/OrganizationActions.js in katello-4.3.1 vs webpack/scenes/Organizations/OrganizationActions.js in katello-4.4.0.rc1

- old
+ new

@@ -37,11 +37,11 @@ const updateCdnConfigurationErrorToast = (error) => { const messages = getResponseErrorMsgs(error.response); return messages; }; -export const updateCdnConfiguration = (params) => { +export const updateCdnConfiguration = (params, updateResults, onError) => { const nonNullParams = Object.keys(params) .filter(key => params[key] !== null) .reduce((a, k) => ({ ...a, [k]: params[k] }), {}); return put({ @@ -49,9 +49,13 @@ key: UPDATE_CDN_CONFIGURATION_KEY, url: api.getApiUrl(`/organizations/${orgId()}/cdn_configuration`), params: nonNullParams, errorToast: error => updateCdnConfigurationErrorToast(error), successToast: response => updateCdnConfigurationSuccessToast(response), + updateData: (_, resp) => { + updateResults(resp); + }, + handleError: onError, }); }; export default loadOrganization;