Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
erinz2020 committed Dec 13, 2024
1 parent 6097bb9 commit b4c51ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions frontend/src/FrontDesk.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export default function FrontDesk() {
const [loading, setLoading] = useState(true);
const { data } = useGetSiteSettings();
const showclassicsubmit = data?.showClassicSubmit;
const showClassicEncounterSearch = data?.showClassicEncouners;

const showClassicEncounterSearch = data?.showClassicEncounters;
const checkLoginStatus = () => {
axios
.head("/api/v3/user")
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/ecocean/api/SiteSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response)
Util.booleanNotFalse(CommonConfiguration.getProperty("showClassicSubmit", context))
);

settings.put("showClassicEncouners",
Util.booleanNotFalse(CommonConfiguration.getProperty("showClassicEncouners", context))
settings.put("showClassicEncounters",
Util.booleanNotFalse(CommonConfiguration.getProperty("showClassicEncounters", context))
);

Properties recaptchaProps = ShepherdProperties.getProperties("recaptcha.properties", "",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/bundles/commonConfiguration.properties
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ showTaxonomy = true
showClassicSubmit = true

# show option for "classic" encounter search page in UI
showClassicEncouners = true
showClassicEncounters = true

#for multi-species libraries, fill out the genus and species for each supported animal type, starting with genusSpecies0
genusSpecies0 = Balaenoptera acutorostrata
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/header.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ if(request.getUserPrincipal()!=null){
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><%=props.getProperty("search")%><span class="svg-placeholder"></span> </a>
<ul class="dropdown-menu" role="menu">
<li><a href="<%=urlLoc %>/react/encounter-search"><%=props.getProperty("encounters")%></a></li>
<% if (Util.booleanNotFalse(CommonConfiguration.getProperty("showClassicEncouners", context))) { %>
<% if (Util.booleanNotFalse(CommonConfiguration.getProperty("showClassicEncounters", context))) { %>
<li><a href="<%=urlLoc %>/encounters/encounterSearch.jsp" ><%=props.getProperty("encountersClassic")%></a></li>
<% } %>
<li><a href="<%=urlLoc %>/individualSearch.jsp"><%=props.getProperty("individuals")%></a></li>
Expand Down

0 comments on commit b4c51ed

Please sign in to comment.