Sha256: c22fc0dc944b693d4241801d965fceb7fb9bb03cfa67c46ee18c9133f9dd3737
Contents?: true
Size: 697 Bytes
Versions: 26
Compression:
Stored size: 697 Bytes
Contents
import { translate as __ } from 'foremanReact/common/I18n'; import { API_OPERATIONS, put } from 'foremanReact/redux/API'; import { errorToast } from '../../../../../scenes/Tasks/helpers'; import { foremanApi } from '../../../../../services/api'; import HOST_CV_AND_ENV_KEY from './HostContentViewConstants'; const updateHostContentViewAndEnvironment = (params, hostId, handleSuccess, handleError) => put({ type: API_OPERATIONS.PUT, key: HOST_CV_AND_ENV_KEY, url: foremanApi.getApiUrl(`/hosts/${hostId}`), successToast: () => __('Host content view and environment updated'), handleSuccess, handleError, errorToast, params, }); export default updateHostContentViewAndEnvironment;
Version data entries
26 entries across 26 versions & 1 rubygems