Skip to content

Commit

Permalink
Add config setting for disabling conservation status panel
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbov committed Aug 24, 2023
1 parent 35837bf commit e846c5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ class DashboardController {
}

def conservationStatusPanel = {
if (metadataService.getSpeciesByConservationStatus())
if (grailsApplication.config.getProperty("useConservationStatusPanel", Boolean, true) &&
metadataService.getSpeciesByConservationStatus())
render view: 'panels/conservationStatusPanel', model: [stateConservation: metadataService.getSpeciesByConservationStatus()]
else
render view: 'panels/empty'
Expand Down
1 change: 1 addition & 0 deletions sbdi/data/config/dashboard-config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ useNationalSpeciesListsService=false
useBHLService=false
useStatePanel=false
useSpeciesImagesPanel=false
useConservationStatusPanel=false

0 comments on commit e846c5f

Please sign in to comment.