Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(area): move area command creation #2322

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
10 changes: 2 additions & 8 deletions antarest/study/storage/variantstudy/model/command/move_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

class MoveArea(ICommand):
"""
Command used to move an area in the study.
Command used to move an area inside the map and to update its UI.
TheoPascoli marked this conversation as resolved.
Show resolved Hide resolved
"""

# Overloaded metadata
Expand All @@ -42,13 +42,7 @@ class MoveArea(ICommand):

@override
def _apply_config(self, study_data: FileStudyTreeConfig) -> t.Tuple[CommandOutput, t.Dict[str, t.Any]]:
return (
CommandOutput(
status=True,
message=f"area '{self.area_id}' updated",
),
{},
)
return CommandOutput(status=True, message=f"area '{self.area_id}' UI updated"), {}

@override
def _apply(self, study_data: FileStudy, listener: t.Optional[ICommandListener] = None) -> CommandOutput:
Expand Down
Loading