Skip to content

Commit

Permalink
Default to all institutions
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Jun 29, 2023
1 parent 1401a90 commit 49b7a7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/routes/teachers/Insights.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
}
const initialize = () => {
const institutionEntityId = institutionId ? institutionId.identifier : null;
const institutionEntityId = institutionId ? institutionId.identifier : "all";
Promise.all([insights(year.name, institutionEntityId, countSURFInTotal), getProfile()]).then(arr => {
serverData = arr[0];
profile = arr[1];
Expand Down Expand Up @@ -800,6 +800,7 @@
handleSelect={institutionSelected}
placeholder={I18n.t("models.insights.institutionPlaceholder")}
items={institutions}
clearable={false}
optionIdentifier="identifier"/>
</Field>
<div class="checkbox-container">
Expand All @@ -814,6 +815,7 @@
<Select
value={badgeType}
handleSelect={badgeTypeSelected}
clearable={false}
items={badgeTypes}
optionIdentifier="value"/>
</Field>
Expand Down Expand Up @@ -851,6 +853,7 @@
<Select
value={year}
handleSelect={yearSelected}
clearable={false}
placeholder={I18n.t("models.insights.yearPlaceholder")}
items={yearSelectOptions}
optionIdentifier="name"/>
Expand Down
2 changes: 1 addition & 1 deletion src/stylesheets/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@
--blue-medium: #173552;
--blue-link: #0077c8;
--blue-light: #9adbe8;
--clearSelectRight: 45px;

}

0 comments on commit 49b7a7d

Please sign in to comment.