mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
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:
parent
37092a6485
commit
5bec400483
@ -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"
|
||||
|
@ -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}}}"{{!
|
||||
|
Loading…
x
Reference in New Issue
Block a user