Просмотр исходного кода

ref(ui): Remove Go to Security & Data Privacy info (#20773)

Priscila Oliveira 4 лет назад
Родитель
Сommit
d2f22c4da7

+ 0 - 17
src/sentry/static/sentry/app/views/settings/organizationGeneralSettings/organizationSettingsForm.tsx

@@ -10,10 +10,6 @@ import Form from 'app/views/settings/components/forms/form';
 import JsonForm from 'app/views/settings/components/forms/jsonForm';
 import organizationSettingsFields from 'app/data/forms/organizationGeneralSettings';
 import withOrganization from 'app/utils/withOrganization';
-import Link from 'app/components/links/link';
-import EmptyMessage from 'app/views/settings/components/emptyMessage';
-import {t} from 'app/locale';
-import {Panel, PanelHeader} from 'app/components/panels';
 import {Organization, Scope} from 'app/types';
 
 type Props = {
@@ -64,19 +60,6 @@ class OrganizationSettingsForm extends AsyncComponent<Props, State> {
         onSubmitError={() => addErrorMessage('Unable to save change')}
       >
         <JsonForm {...jsonFormSettings} forms={organizationSettingsFields} />
-
-        <Panel>
-          <PanelHeader>{t('Security & Privacy')}</PanelHeader>
-          <EmptyMessage
-            title={t('Security & Privacy has moved')}
-            description={
-              <Link to={`/settings/${organization.slug}/security-and-privacy/`}>
-                {t('Go to Security & Privacy')}
-              </Link>
-            }
-          />
-        </Panel>
-
         <AvatarChooser
           type="organization"
           allowGravatar={false}

+ 0 - 16
src/sentry/static/sentry/app/views/settings/projectGeneralSettings.jsx

@@ -30,8 +30,6 @@ import handleXhrErrorResponse from 'app/utils/handleXhrErrorResponse';
 import marked from 'app/utils/marked';
 import recreateRoute from 'app/utils/recreateRoute';
 import routeTitleGen from 'app/utils/routeTitle';
-import Link from 'app/components/links/link';
-import EmptyMessage from 'app/views/settings/components/emptyMessage';
 
 class ProjectGeneralSettings extends AsyncView {
   static propTypes = {
@@ -453,20 +451,6 @@ class ProjectGeneralSettings extends AsyncView {
             )}
           />
 
-          <Panel>
-            <PanelHeader>{t('Data Privacy')}</PanelHeader>
-            <EmptyMessage
-              title={t('Data Privacy has moved')}
-              description={
-                <Link
-                  to={`/settings/${orgId}/projects/${projectId}/security-and-privacy/`}
-                >
-                  {t('Go to Security & Privacy')}
-                </Link>
-              }
-            />
-          </Panel>
-
           <JsonForm
             {...jsonFormProps}
             title={t('Client Security')}