Browse Source

SONAR-14662 Better Plugin Risk Consent page

tags/8.9.0.43852
Jeremy Davis 3 years ago
parent
commit
d134ebd2e8

+ 4
- 17
server/sonar-web/src/main/js/app/components/PluginRiskConsent.tsx View File

@@ -18,8 +18,6 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router';
import { Button } from 'sonar-ui-common/components/controls/buttons';
import { translate } from 'sonar-ui-common/helpers/l10n';
import { setSimpleSettingValue } from '../../api/settings';
@@ -66,22 +64,11 @@ export function PluginRiskConsent(props: PluginRiskConsentProps) {
<div className="boxed-group-inner text-center">
<h1 className="big-spacer-bottom">{translate('plugin_risk_consent.title')}</h1>
<p className="big big-spacer-bottom">{translate('plugin_risk_consent.description')}</p>
<p className="big big-spacer-bottom">{translate('plugin_risk_consent.description2')}</p>
<p className="big huge-spacer-bottom">
<FormattedMessage
id="plugin_risk_consent.description3"
defaultMessage={translate('plugin_risk_consent.description3')}
values={{
link: (
<Link to="/documentation/instance-administration/marketplace/" target="_blank">
{translate('plugin_risk_consent.description3.link')}
</Link>
)
}}
/>
</p>
<p className="big huge-spacer-bottom">{translate('plugin_risk_consent.description2')}</p>

<Button onClick={acknowledgeRisk}>{translate('plugin_risk_consent.action')}</Button>
<Button className="big-spacer-bottom" onClick={acknowledgeRisk}>
{translate('plugin_risk_consent.action')}
</Button>
</div>
</div>
</div>

+ 2
- 21
server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/PluginRiskConsent-test.tsx.snap View File

@@ -21,32 +21,13 @@ exports[`should render correctly: default 1`] = `
>
plugin_risk_consent.description
</p>
<p
className="big big-spacer-bottom"
>
plugin_risk_consent.description2
</p>
<p
className="big huge-spacer-bottom"
>
<FormattedMessage
defaultMessage="plugin_risk_consent.description3"
id="plugin_risk_consent.description3"
values={
Object {
"link": <Link
onlyActiveOnIndex={false}
style={Object {}}
target="_blank"
to="/documentation/instance-administration/marketplace/"
>
plugin_risk_consent.description3.link
</Link>,
}
}
/>
plugin_risk_consent.description2
</p>
<Button
className="big-spacer-bottom"
onClick={[Function]}
>
plugin_risk_consent.action

+ 1
- 3
sonar-core/src/main/resources/org/sonar/l10n/core.properties View File

@@ -2755,10 +2755,8 @@ marketplace.risk_consent.installation=You can install plugins directly from the
marketplace.risk_consent.action=I understand the risk.

plugin_risk_consent.title=Installation of plugins
plugin_risk_consent.description=A third-party plugin has been detected.
plugin_risk_consent.description=A plugin has been detected.
plugin_risk_consent.description2=Plugins are not provided by SonarSource and are therefore installed at your own risk. SonarSource disclaims all liability for installing and using such plugins.
plugin_risk_consent.description3=If you wish to uninstall the plugin(s) instead, you may refer to the {link}.
plugin_risk_consent.description3.link=documentation
plugin_risk_consent.action=I understand the risk

#------------------------------------------------------------------------------

Loading…
Cancel
Save