diff --git a/wherehows-web/app/components/dataset-compliance.js b/wherehows-web/app/components/dataset-compliance.js index 85fe7808c0..e34cdf8ccf 100644 --- a/wherehows-web/app/components/dataset-compliance.js +++ b/wherehows-web/app/components/dataset-compliance.js @@ -6,7 +6,8 @@ import { fieldIdentifierTypes, idLogicalTypes, nonIdFieldLogicalTypes, - defaultFieldDataTypeClassification + defaultFieldDataTypeClassification, + compliancePolicyStrings } from 'wherehows-web/constants'; import { isPolicyExpectedShape } from 'wherehows-web/utils/datasets/functions'; @@ -23,25 +24,14 @@ const { String: { htmlSafe } } = Ember; -// TODO: DSS-6671 Extract to constants module -const missingTypes = 'Looks like some fields may contain privacy data but do not have a specified `Field Format`?'; -const successUpdating = 'Your changes have been successfully saved!'; -const failedUpdating = 'Oops! We are having trouble updating this dataset at the moment.'; +const { complianceDataException, missingTypes, successUpdating, failedUpdating, helpText } = compliancePolicyStrings; + const hiddenTrackingFieldsMsg = htmlSafe( '
Some fields in this dataset have been hidden from the table(s) below. ' + "These are tracking fields for which we've been able to predetermine the compliance classification.
" + 'For example: header.memberId
, requestHeader
. ' +
'Hopefully, this saves you some scrolling!