Skip to content

Commit

Permalink
Merge pull request #2374 from techmatters/CHI-2808-cherry_pick
Browse files Browse the repository at this point in the history
CHI-2808: cherry pick
  • Loading branch information
stephenhand authored Jul 1, 2024
2 parents bc66bd9 + 350b693 commit 721bd00
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{ "value": "Referrals to school counsellors", "label": "Referrals to school counsellors" },
{ "value": "Reports to Child Sexual Abuse Material", "label": "Reports to Child Sexual Abuse Material" },
{ "value": "Reports to PSEA point person", "label": "Reports to PSEA point person" },
{"value": "One Stop Centres"},
{ "value": "One Stop Centres", "label": "One Stop Centres" },
{ "value": "Other", "label": "Other" }
]
},
Expand Down
2 changes: 1 addition & 1 deletion plugin-hrm-form/src/components/case/ViewCaseItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const ViewCaseItem: React.FC<Props> = ({
};

const targetObject: FormTargetObject = {
id: currentRoute.id,
id: currentRoute.caseId,
type: 'case',
};

Expand Down
5 changes: 4 additions & 1 deletion plugin-hrm-form/src/maskIdentifiers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,15 @@ export const maskManagerStringsWithIdentifiers = <T extends Strings<string> & {
export const maskMessageListWithIdentifiers = () => {
const can = getInitializedCan();
const maskIdentifiers = !can(PermissionActions.VIEW_IDENTIFIERS);

if (!maskIdentifiers) return;

MessagingCanvas.defaultProps.memberDisplayOptions = {
theirDefaultName: 'XXXXXX',
theirFriendlyNameOverride: false,
yourFriendlyNameOverride: true,
};
MessageList.Content.remove('0');
MessageList.Content.remove('0', {
if: ({ conversation }) => conversation?.source?.attributes?.channel_type === 'web',
});
};

0 comments on commit 721bd00

Please sign in to comment.