translate('marketplace.status', editionStatus.installationStatus)
)}
</span>
+ {edition &&
+ edition.key === 'datacenter' && (
+ <a
+ className="spacer-left"
+ href="https://redirect.sonarsource.com/doc/how-to-install-an-edition.html"
+ target="_blank">
+ {translate('marketplace.how_to_configure_cluster')}
+ </a>
+ )}
{!preventRestart && (
<button className="js-restart spacer-left" onClick={this.handleOpenRestart}>
{translate('marketplace.restart')}
);
expect(wrapper.find('button.js-restart').exists()).toBeFalsy();
});
+
+it('should a link to cluster documentation for datacenter edition', () => {
+ const editions = [{ key: 'datacenter' }] as any;
+ const wrapper = shallow(
+ <SettingsEditionsNotif
+ editions={editions}
+ editionStatus={{ installationStatus: 'AUTOMATIC_READY', nextEditionKey: 'datacenter' }}
+ preventRestart={false}
+ setEditionStatus={jest.fn()}
+ />
+ );
+ expect(wrapper.find('a').exists()).toBeTruthy();
+});
'marketplace.license_preview_status.' + previewStatus,
licenseEdition ? licenseEdition.name : translate('marketplace.commercial_edition')
)}
+ {licenseEdition &&
+ licenseEdition.key === 'datacenter' &&
+ previewStatus !== 'NO_INSTALL' && (
+ <a
+ className="spacer-left"
+ href="https://redirect.sonarsource.com/doc/how-to-install-an-edition.html"
+ target="_blank">
+ {translate('marketplace.how_to_configure_cluster')}
+ </a>
+ )}
</p>
);
}
marketplace.status_x.UNINSTALL_IN_PROGRESS=Successfully downgraded to {0}. Please restart the server to remove the features.
marketplace.status_x.MANUAL_IN_PROGRESS={0} can't automatically be installed because of internet access issues. Please manually install the package in your SonarQube's plugins folder.
marketplace.how_to_install=How to install it?
+marketplace.how_to_configure_cluster=How to configure a cluster?
marketplace.enter_license_for_x=Enter your license key for {0}
marketplace.wrong_license_type_x=Your license is not compatible with the selected edition. Please provide a valid license for {0}.
marketplace.i_need_a_license=I need a license key