Skip to content

Commit 425dd0a

Browse files
committed
[Feature] UI: ConfirmationPrompt - fix docs wording
1 parent 229004e commit 425dd0a

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

components/ILIAS/UI/src/examples/Prompt/Standard/confirmation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
* expected output: >
3737
* A button opens a prompt listing selected entities with a confirmation question.
3838
* Submitting posts the entity ids; the result is shown in the prompt.
39+
* The prompt can be closed.
3940
* ---
4041
*/
4142
function confirmation(): string

components/ILIAS/UI/src/examples/Prompt/State/Confirm/base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function base(): string
9898
->buildURI();
9999

100100
$prompt = $factory->prompt()->standard($open_uri);
101-
$trigger = $factory->button()->primary('Open confirm (show result)', $prompt->getShowSignal($open_uri));
101+
$trigger = $factory->button()->primary('Open Confirmation (And Show Result)', $prompt->getShowSignal($open_uri));
102102

103103
if (!$query->has($endpoint_token->getName())) {
104104
return $renderer->render([$trigger, $prompt]);

components/ILIAS/UI/src/examples/Prompt/State/Confirm/close.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
* After confirming, the consumer returns a close state and the prompt is dismissed.
3131
*
3232
* expected output: >
33-
* A button opens a confirmation prompt. Confirming closes the prompt without
34-
* showing further content inside it.
33+
* A button opens a confirmation prompt. Confirming closes the prompt.
34+
* No further information is displayed.
35+
* The prompt can also be closed.
3536
* ---
3637
*/
3738
function close(): string
@@ -89,7 +90,7 @@ function close(): string
8990
->buildURI();
9091

9192
$prompt = $factory->prompt()->standard($open_uri);
92-
$trigger = $factory->button()->primary('Open confirm (close prompt)', $prompt->getShowSignal($open_uri));
93+
$trigger = $factory->button()->primary('Open Confirmation (And Close Prompt)', $prompt->getShowSignal($open_uri));
9394
$hint = $factory->messageBox()->info('After confirming, the prompt closes.');
9495

9596
if (!$query->has($endpoint_token->getName())) {

components/ILIAS/UI/src/examples/Prompt/State/Confirm/redirect.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
*
3333
* expected output: >
3434
* A button opens a confirmation prompt. Confirming redirects the page and
35-
* shows a success message below the trigger button.
35+
* shows a success message above the trigger button.
36+
* The prompt can also be closed.
3637
* ---
3738
*/
3839
function redirect(): string
@@ -100,7 +101,7 @@ function redirect(): string
100101
->buildURI();
101102

102103
$prompt = $factory->prompt()->standard($open_uri);
103-
$trigger = $factory->button()->primary('Open confirm (redirect)', $prompt->getShowSignal($open_uri));
104+
$trigger = $factory->button()->primary('Open Confirmation (And Redirect)', $prompt->getShowSignal($open_uri));
104105

105106
$has_success_feedback = $query->has($success_token->getName())
106107
&& $query->retrieve($success_token->getName(), $refinery->kindlyTo()->string()) !== '';

0 commit comments

Comments
 (0)