Skip to content

Commit

Permalink
Add edit_sections
Browse files Browse the repository at this point in the history
  • Loading branch information
tilen1976 committed Mar 14, 2024
1 parent 15cc786 commit 562542c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/datadoc/frontend/callbacks/register_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def callback_populate_variables_workspace(
for variable in list(state.metadata.variables)
]

# Work in progress...
@app.callback(
Output(SECTION_WRAPPER_ID, "children"),
Input("language-dropdown", "value"),
Expand All @@ -222,6 +223,8 @@ def callback_populate_dataset_workspace(language: str) -> list:
logger.info("Populating new dataset workspace")
return [
build_dataset_edit_section("Obligatorisk"),
build_dataset_edit_section("Anbefalt"),
build_dataset_edit_section("Maskingenerert"),
]

@app.callback(
Expand Down

0 comments on commit 562542c

Please sign in to comment.