Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -267,14 +267,14 @@ public function withDedicatedName(string $dedicated_name): self
*/
public function getPromptButtons(): array
{
return $this->buttons;
return $this->action_buttons;
}

/**
* @inheritdoc
*/
public function getPromptTitle(): string
{
return $this->type;
return $this->title;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,19 @@ protected function renderState(State $component, RendererInterface $default_rend
return $tpl->get();
}

$tpl->setVariable('CONTENT', $default_renderer->render($content_component));
$content = $content_component;
if ($content_component instanceof \ILIAS\UI\Component\Modal\RoundTrip) {
$content = $content_component->getContent();
}

$tpl->setVariable('CONTENT', $default_renderer->render($content));
$tpl->setVariable('TITLE', $component->getTitle());

$buttons = $component->getButtons();
if ($content_component instanceof \ILIAS\UI\Component\Input\Container\Form\Form) {
if (
$content_component instanceof \ILIAS\UI\Component\Input\Container\Form\Form &&
!($content_component instanceof \ILIAS\UI\Component\Modal\RoundTrip)
) {
$submit_button = $this->getUIFactory()->button()->standard(
$content_component->getSubmitLabel() ?? $this->txt("save"),
$content_component->getSubmitSignal()
Expand Down
Loading