Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-71788

Make it easier to copy the export url

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-71788-master-7
    • Hide

      Note: Test on all supported browsers

      Test
      1. Log in as a user.
      2. Go to the calendar
      3. Click "Export calendar"
      4. Press "Get calendar URL"
      5. Confirm that you see the calendar URL in a read-only text area.
      6. Press "Copy URL"
      7. Confirm that you see a toast message that the text was copied.
      8. Open a new browser tab and click on the address bar.
      9. Press Ctrl-V.
      10. Confirm that the calendar URL is pasted on the address bar.
      Fallback test
      1. Repeat the above test with the Clipboard API not available (site is not localhost or not served over HTTPS). Set $CFG->wwwroot to a value that is in HTTP and not localhost like your machine's local IP address or the HTTP link from ngrok. e.g. "http://192.168.0.2/your_moodle_root"
      Show
      Note: Test on all supported browsers Test Log in as a user. Go to the calendar Click "Export calendar" Press "Get calendar URL" Confirm that you see the calendar URL in a read-only text area. Press "Copy URL" Confirm that you see a toast message that the text was copied. Open a new browser tab and click on the address bar. Press Ctrl-V. Confirm that the calendar URL is pasted on the address bar. Fallback test Repeat the above test with the Clipboard API not available (site is not localhost or not served over HTTPS). Set $CFG->wwwroot to a value that is in HTTP and not localhost like your machine's local IP address or the HTTP link from ngrok. e.g. " http://192.168.0.2/your_moodle_root "
    • 1
    • HQ Team International Sprint 3, HQ Team International Sprint 4

    Description

      Current behaviour: When the user is exporting the calendar and click "Get calendar URL" button, the url is displayed on the footer of the page.

      Proposed change: Enclose the export URL in a field and implement the "Copy URL" button as per prototype

      Link to prototype

      Must have: Enclose the calendar URL in a text box
      Could have: Implement the copy URL button.

      Note:
      If the "Copy URL" button will be implemented, we should not use document.execCommand() because it's a deprecated feature. The Clipboard API might be useful.

      Attachments

        Issue Links

          Activity

            People

              jpataleta Jun Pataleta
              lameze Simey Lameze
              Michael Hawkins Michael Hawkins
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Gladys Basiana Gladys Basiana
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 2 hours, 33 minutes
                  3d 2h 33m