Skip to content

Commit

Permalink
Fix all datasets checkbox in the input project layers and save projec…
Browse files Browse the repository at this point in the history
…t name in settings in OutputProject Layer
  • Loading branch information
cxnt committed Aug 27, 2024
1 parent 6a4c145 commit b6e779e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ def create_input_data_selector_widgets():
src_input_data_sidebar_dataset_selector = SelectDatasetTree(
multiselect=True,
flat=True,
select_all_datasets=True,
select_all_datasets=False,
allowed_project_types=[ProjectType.IMAGES],
always_open=False,
compact=False,
team_is_selectable=False,
workspace_is_selectable=False,
append_to_body=False,
show_select_all_datasets_checkbox=True,
)

src_input_data_sidebar_save_btn = create_save_btn()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ def create_input_data_selector_widgets():
src_input_data_sidebar_dataset_selector = SelectDatasetTree(
multiselect=True,
flat=True,
select_all_datasets=True,
select_all_datasets=False,
allowed_project_types=[ProjectType.VIDEOS],
always_open=False,
compact=False,
team_is_selectable=False,
workspace_is_selectable=False,
append_to_body=False,
show_select_all_datasets_checkbox=True,
)

src_input_data_sidebar_save_btn = create_save_btn()
Expand Down
9 changes: 9 additions & 0 deletions src/ui/dtl/actions/output/output_project/output_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@ def _update_preview():

def get_settings(options_json: dict):
nonlocal saved_settings
if not is_existing_project.is_checked():
settings = {
"project_name": new_project_name_input.get_value(),
"dataset_option": None,
"dataset_name": None,
"dataset_id": None,
"merge_different_meta": False,
}
saved_settings = settings
return {
**saved_settings,
"is_existing_project": is_existing_project.is_checked(),
Expand Down

0 comments on commit b6e779e

Please sign in to comment.