Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vedfordev committed Sep 5, 2024
2 parents 6c15e1a + 00edf3d commit 9116a8f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/documentation/toolTip.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,6 @@
"ENABLE_MESSAGING_BUTTON": "Enable messaging through WhatsApp. Requires a Glific account",
"APP_DESIGNER_MESSAGE_RULE_NAME": "Name",
"APP_DESIGNER_SELECT_MESSAGE_TEMPLATE": "Choose the message template",
"APP_DESIGNER_SELECT_RECEIVER_TYPE": "Choose the receiver type"
"APP_DESIGNER_SELECT_RECEIVER_TYPE": "Choose the receiver type",
"IGNORE_SYNC_SETTINGS_IN_DEA": "Ignore the SubjectType sync settings restrictions in the Data Entry app."
}
11 changes: 11 additions & 0 deletions src/adminApp/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ export const UserDetail = ({ user, hasEditUserPrivilege, ...props }) => {
</ArrayField>
<FunctionField label="Operating Scope" render={user => formatOperatingScope(user.operatingIndividualScope)} />
<LineBreak />
<h4>Sync Settings</h4>
<FunctionField
label="Below Subject type Sync settings are to be ignored in the Data Entry app: "
render={user => (user.ignoreSyncSettingsInDEA ? "Yes" : "No")}
/>
{map(syncAttributesData.subjectTypes, st => (
<SubjectTypeSyncAttributeShow
subjectType={st}
Expand Down Expand Up @@ -584,6 +589,12 @@ const UserForm = ({ edit, nameSuffix, organisation, ...props }) => {
Sync Settings
</Typography>
</ToolTipContainer>
<AvniBooleanInput
style={{ marginLeft: "10px", marginTop: "10px" }}
source="ignoreSyncSettingsInDEA"
label="Ignore below listed Sync settings in the Data Entry app"
toolTipKey={"IGNORE_SYNC_SETTINGS_IN_DEA"}
/>
{map(syncAttributesData.subjectTypes, st => (
<SubjectTypeSyncAttributes subjectType={st} key={get(st, "name")} {...props} />
))}
Expand Down

0 comments on commit 9116a8f

Please sign in to comment.