Skip to content

Commit

Permalink
Merge pull request #534 from Esri/bcree/chore/add-Reporter-setting
Browse files Browse the repository at this point in the history
chore: add showUserImageInCommentsList setting, make sure expanded being updated for languageSwitcher
  • Loading branch information
bcree11 authored Aug 29, 2024
2 parents 77c311e + 4f2d285 commit f761dcb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/configParamsJSON/reporterConfigParams.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
{
"type": "setting",
"id": "reportsHeader",
"defaultValue": "Reports",
"express": false
},
{
Expand All @@ -201,16 +202,25 @@
{
"type": "setting",
"id": "showFeatureSymbol",
"defaultValue": false,
"express": true
},
{
"type": "setting",
"id": "showUserImageInCommentsList",
"defaultValue": false,
"express": true
},
{
"type": "setting",
"id": "reportSubmittedMessage",
"defaultValue": "Thank you! Your report was successfully submitted.",
"express": true
},
{
"type": "setting",
"id": "reportButtonText",
"defaultValue": "Report an incident",
"express": true
}
]
Expand Down
2 changes: 1 addition & 1 deletion src/functionality/esriWidgetUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,6 @@ export async function addLanguageSwitcher(
container.prepend(ls);
node = new Expand({
expandIcon: languageSwitcherConfig?.icon ?? "language",
expanded: languageSwitcherOpenAtStart,
view,
content: container,
id: uniqueId,
Expand All @@ -792,6 +791,7 @@ export async function addLanguageSwitcher(
node.expandTooltip = tip;
node.collapseTooltip = closeTip;
node.group = group;
node.expanded = languageSwitcherOpenAtStart;
}

export function getPosition(position: { position: string } | string): string {
Expand Down

0 comments on commit f761dcb

Please sign in to comment.