Skip to content

Commit

Permalink
feat(occtax): add config to expand advanced btn
Browse files Browse the repository at this point in the history
On occurence tab when adding a taxon
  • Loading branch information
Maxime Vergez authored and Pierre-Narcisi committed Aug 23, 2023
1 parent 56514cf commit 1152514
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions contrib/occtax/backend/occtax/conf_schema_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,4 @@ class GnModuleSchemaConf(Schema):
ADD_MEDIA_IN_EXPORT = fields.Boolean(load_default=False)
ID_LIST_HABITAT = fields.Integer(load_default=None)
CD_TYPO_HABITAT = fields.Integer(load_default=None)
ADVANCED_DETAILS_OCCURRENCE_EXPANDED = fields.Boolean(load_default=False)
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ export class OcctaxFormOccurrenceComponent implements OnInit, OnDestroy {
)
.subscribe((display: boolean) => (this.displayProofFromElements = display))
);

this.advanced = this.config.OCCTAX.ADVANCED_DETAILS_OCCURRENCE_EXPANDED
? 'expanded'
: 'collapsed';
this.initTaxrefSearch();
}

Expand Down
3 changes: 3 additions & 0 deletions contrib/occtax/occtax_config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ DATE_FORM_WITH_TODAY = true
# Displays the possibility for the user to indicate a default value for the different fields of the form
ENABLE_SETTINGS_TOOLS = false

# Automatically expand the advanced button when adding a taxon
ADVANCED_DETAILS_OCCURRENCE_EXPANDED = false

# -------- MAPLIST PARAMETER ------------

# Zoom level on the map from which you can add point/line/polygon
Expand Down

0 comments on commit 1152514

Please sign in to comment.