Skip to content

Commit

Permalink
Merge pull request #1031 from digitalfabrik/1030-incomplete-data-priv…
Browse files Browse the repository at this point in the history
…acy-policy

1030: Incomplete data privacy
  • Loading branch information
f1sh1918 authored Jun 28, 2023
2 parents 75d71c0 + b492226 commit cb2fc68
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const DataPrivacyPolicy = (): ReactElement => {
<Container>
<Title>{config.dataPrivacyHeadline}</Title>
<config.dataPrivacyContent />
{config.dataPrivacyAdditionalBaseContent && <config.dataPrivacyAdditionalBaseContent />}
</Container>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const StepSendForm: Form<State, Options, ValidatedInput, AdditionalProps> = {
const policyQueryHandler = getQueryResult(policyQuery)
if (!policyQueryHandler.successful) return policyQueryHandler.component
const dataPrivacyPolicy = policyQueryHandler.data.dataPolicy.dataPrivacyPolicy

return (
<>
<SubForms.hasAcceptedDataPrivacy.Component
Expand Down Expand Up @@ -105,7 +106,11 @@ const StepSendForm: Form<State, Options, ValidatedInput, AdditionalProps> = {
content={
<>
<config.dataPrivacyContent />
<div>{dataPrivacyPolicy}</div>
{config.dataPrivacyAdditionalBaseContent && (!dataPrivacyPolicy || dataPrivacyPolicy.length === 0) ? (
<config.dataPrivacyAdditionalBaseContent />
) : (
<div>{dataPrivacyPolicy}</div>
)}
</>
}
/>
Expand Down
3 changes: 2 additions & 1 deletion administration/src/project-configs/bayern/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BavariaCardTypeExtension from '../../cards/extensions/BavariaCardTypeExtension'
import RegionExtension from '../../cards/extensions/RegionExtension'
import { ProjectConfig } from '../getProjectConfig'
import { DataPrivacyBaseText, dataPrivacyBaseHeadline } from './dataPrivacyBase'
import { DataPrivacyAdditionalBaseText, DataPrivacyBaseText, dataPrivacyBaseHeadline } from './dataPrivacyBase'
import pdfConfiguration from './pdf'

const config: ProjectConfig = {
Expand All @@ -18,6 +18,7 @@ const config: ProjectConfig = {
},
dataPrivacyHeadline: dataPrivacyBaseHeadline,
dataPrivacyContent: DataPrivacyBaseText,
dataPrivacyAdditionalBaseContent: DataPrivacyAdditionalBaseText,
timezone: 'Europe/Berlin',
pdf: pdfConfiguration,
}
Expand Down
11 changes: 8 additions & 3 deletions administration/src/project-configs/bayern/dataPrivacyBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,16 @@ export const DataPrivacyBaseText = () => (
Informationen, die Sie unverschlüsselt per E-Mail an uns senden können, möglicherweise auf dem Übertragungsweg von
Dritten gelesen werden.{' '}
</p>
<p style={{ marginTop: '0pt', marginBottom: '8pt' }}>
<div>
<span>
<b>Weitergabe der Daten an externe Dritte</b>
</span>
</p>
<p style={{ marginTop: '0pt', marginBottom: '8pt' }} />
</div>
</div>
)

export const DataPrivacyAdditionalBaseText = () => (
<div>
<span>Es erfolgt keine Weitergabe der Daten an Dritte.</span>
</div>
)
1 change: 1 addition & 0 deletions administration/src/project-configs/getProjectConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export interface ProjectConfig {
card: CardConfig
dataPrivacyHeadline: string
dataPrivacyContent: () => ReactElement
dataPrivacyAdditionalBaseContent?: () => ReactElement
pdf: PdfConfig
timezone: string
activityLogConfig?: ActivityLogConfig
Expand Down

0 comments on commit cb2fc68

Please sign in to comment.