webpack/scenes/ContentViews/Publish/PublishContentViewWizard.js in katello-4.13.1 vs webpack/scenes/ContentViews/Publish/PublishContentViewWizard.js in katello-4.14.0.rc1
- old
+ new
@@ -13,10 +13,11 @@
selectEnvironmentPathsStatus,
} from '../components/EnvironmentPaths/EnvironmentPathSelectors';
import { stopPollingTask } from '../../Tasks/TaskActions';
import { cvVersionTaskPollingKey } from '../ContentViewsConstants';
import { getContentViewFilters } from '../Details/ContentViewDetailActions';
+import { truncate } from '../../../utils/helpers';
const PublishContentViewWizard = ({
details, show, onClose,
}) => {
const { name, id: cvId, version_count: versionCount } = details;
@@ -106,10 +107,10 @@
}, [userCheckedItems, setForcePromote, isValid]);
return (
<Wizard
title={__('Publish')}
- description={currentStep === 3 ? __(`Publishing ${name}`) : __(`Determining settings for ${name}`)}
+ description={currentStep === 3 ? __(`Publishing ${truncate(name)}`) : __(`Determining settings for ${truncate(name)}`)}
steps={steps}
startAtStep={currentStep}
// Let the wizard handle step change
onGoToStep={({ id }) => setCurrentStep(id)}
onNext={({ id }) => setCurrentStep(id)}