MDL-79693 output: remove embedded toast region from clipboard modal.

This was causing the toast notification upon the clipboard action
result to immediately disappear as the modal was closed. The toast
module can happily handle this for us itself, so remove from the
template.
This commit is contained in:
Paul Holden 2023-10-13 14:12:00 +01:00
parent 37092a6485
commit 5bec400483
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164
2 changed files with 8 additions and 2 deletions

View File

@ -97,3 +97,10 @@ Feature: Sections can be edited and deleted in topics format
| Assignment name | Very new activity |
| Description | Test |
Then I should see "Very new activity" in the "Topic 6" "section"
@javascript
Scenario: Copy section permalink URL to clipboard
When I open section "1" edit menu
And I click on "Permalink" "link" in the "Topic 1" "section"
And I click on "Copy to clipboard" "link" in the "Permalink" "dialogue"
Then I should see "Text copied to clipboard"

View File

@ -25,13 +25,12 @@
Example context (json):
{
"text": "content for the input field that is being copied to the clipboard",
"text": "content for the input field that is being copied to the clipboard"
}
}}
{{< core/modal }}
{{$title}}{{#str}} copytoclipboard, core {{/str}}{{/title}}
{{$body}}
{{> core/local/toast/wrapper }}
{{^useTextArea}}
<input type="text" id="directionlink-modal-{{uniqid}}" class="form-control bg-white" readonly {{!
}} value="{{{text}}}"{{!