Sha256: 7524f202161c4379cee6ebc125d5c5bd9b08ebc9fbe3440b307c8da654cbedac
Contents?: true
Size: 553 Bytes
Versions: 8
Compression:
Stored size: 553 Bytes
Contents
import { translate as __ } from 'foremanReact/common/I18n'; import { foremanUrl } from 'foremanReact/common/helpers'; const hostTableRowActions = (hostDetails) => { const hostIsRegistered = hostDetails?.subscription_facet_attributes?.uuid; return [ { title: __('Change content view environments'), onClick: () => { window.location.href = foremanUrl(`hosts/${hostDetails.display_name}#/Overview?content_view_assignment=true`); }, isDisabled: !hostIsRegistered, }, ]; }; export default hostTableRowActions;
Version data entries
8 entries across 8 versions & 1 rubygems