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

Sync course index and course content when an element is dragged

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-71727-master-v03
    • Hide
      1. Login as admin and create a course with some sections and activities
      2. Access the course and turn editing on
      3. Open the course index (you probably need to close the main drawer before) and uncollapse the sections with activities (or at least the sections with the activities you want  to test)
      4. Drag an activity from the course index
        1. Check the same element in the course content is displayed dimmed while you drag the element
        2. Check that both elements in the course index and the course content returns to the normal display when you stop dragging it (you can drop on an invalid screen region like the top page tool nav)
      5. Repeat step 4 for one section from the course index, one activity from the course content, and one section from the course content.
      Show
      Login as admin and create a course with some sections and activities Access the course and turn editing on Open the course index (you probably need to close the main drawer before) and uncollapse the sections with activities (or at least the sections with the activities you want  to test) Drag an activity from the course index Check the same element in the course content is displayed dimmed while you drag the element Check that both elements in the course index and the course content returns to the normal display when you stop dragging it (you can drop on an invalid screen region like the top page tool nav) Repeat step 4 for one section from the course index, one activity from the course content, and one section from the course content.
    • Moppies Kanban

    Description

      Course index and course content can drag elements from one to another. The same elements (activities, sections) are present in both lists, however, when the user drags one element from one of them, the same element in the other does not change its appearances.

      It would be great if when the user drags from the course index, the same element in the course gets dimmed as well (and viceversa).

      The solution will add a new "dragging" attribute to the course state to dim the element.

      To do is so the best approach is to create a new attribute to the cm/section state that indicates if the element is dragged and then add a watcher to both components. This attribute will be the first attribute handled entirely by the frontend, and the first mutation that won't call any webservice to process an updates message.

      Attachments

        Issue Links

          Activity

            People

              tusefomal Ferran Recio
              tusefomal Ferran Recio
              Ilya Tregubov Ilya Tregubov
              Andrew Lyons Andrew Lyons
              Gladys Basiana Gladys Basiana
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 1 hour, 30 minutes
                  1w 1h 30m