diff --git a/components/ILIAS/UI/src/Component/Modal/RoundTrip.php b/components/ILIAS/UI/src/Component/Modal/RoundTrip.php index 4a3e952c4ea2..a87e4d9c7f2c 100755 --- a/components/ILIAS/UI/src/Component/Modal/RoundTrip.php +++ b/components/ILIAS/UI/src/Component/Modal/RoundTrip.php @@ -21,12 +21,12 @@ use ILIAS\UI\Component\Button; use ILIAS\UI\Component\Component; use ILIAS\UI\Component\ReplaceSignal; -use ILIAS\UI\Component\Input\Container\Form\Standard; +use ILIAS\UI\Component\Input\Container\Container; /** * @package ILIAS\UI\Component\Modal */ -interface RoundTrip extends Modal, Standard +interface RoundTrip extends Modal, Container { /** * Get the title of the modal @@ -66,6 +66,11 @@ public function withActionButtons(array $buttons): RoundTrip; */ public function withCancelButtonLabel(string $label): RoundTrip; + /** + * Get a modal like this with the provided submit button string. + */ + public function withSubmitLabel(string $label): self; + /** * Get the signal to replace the content of this modal. */ diff --git a/components/ILIAS/UI/src/Implementation/Component/Dropzone/File/File.php b/components/ILIAS/UI/src/Implementation/Component/Dropzone/File/File.php index c2c725a6a8b5..fd651e88ca4b 100755 --- a/components/ILIAS/UI/src/Implementation/Component/Dropzone/File/File.php +++ b/components/ILIAS/UI/src/Implementation/Component/Dropzone/File/File.php @@ -191,13 +191,6 @@ public function getReplaceSignal(): ReplaceSignal return $this->modal->getReplaceSignal(); } - public function withAdditionalFormAction(string $action, string $label): static - { - $clone = clone $this; - $clone->modal = $clone->modal->withAdditionalFormAction($action, $label); - return $clone; - } - public function getPostURL(): string { return $this->modal->getPostURL(); @@ -230,7 +223,7 @@ public function withRequest(ServerRequestInterface $request): self public function withInput(InputData $input_data): self { $clone = clone $this; - $clone->modal = $clone->modal->withInput($request); + $clone->modal = $clone->modal->withInput($input_data); return $clone; } @@ -281,20 +274,4 @@ public function withDedicatedName(string $dedicated_name): self { return $this; } - - /** - * @inheritdoc - */ - public function getPromptButtons(): array - { - return $this->buttons; - } - - /** - * @inheritdoc - */ - public function getPromptTitle(): string - { - return $this->type; - } } diff --git a/components/ILIAS/UI/src/Implementation/Component/Modal/RoundTrip.php b/components/ILIAS/UI/src/Implementation/Component/Modal/RoundTrip.php index a6125e631c31..004f5c1b9b9a 100755 --- a/components/ILIAS/UI/src/Implementation/Component/Modal/RoundTrip.php +++ b/components/ILIAS/UI/src/Implementation/Component/Modal/RoundTrip.php @@ -216,13 +216,6 @@ public function getError(): ?string return $this->form->getError(); } - public function withAdditionalFormAction(string $action, string $label): static - { - $clone = clone $this; - $clone->form = $clone->form->withAdditionalFormAction($action, $label); - return $clone; - } - /** * @inheritDoc */ @@ -261,20 +254,4 @@ public function withDedicatedName(string $dedicated_name): self { return $this; } - - /** - * @inheritdoc - */ - public function getPromptButtons(): array - { - return $this->buttons; - } - - /** - * @inheritdoc - */ - public function getPromptTitle(): string - { - return $this->type; - } }