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

Timeline: Number of activities displayed should be configurable

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5
    • Blocks
    • MOODLE_405_STABLE

      The number of activities displayed by default in the Timeline dashboard widget should be configurable.

      By default, only 5 activities are displayed. More can be shown by clicking the "Show more activities" button.

      The timeline is the main widget in our case and I want the student to see all their due activities on one page, without clicking buttons.

      This was configurable (per user) before the "Show more activities" button was introduced.

      The configuration should be brought back, preferably as a global configuration option.

      Currently it is hardcoded in https://github.com/moodle/moodle/blob/7a318d5c85aa15b9ad49a42c4c93b2b663adca95/blocks/timeline/amd/src/event_list.js#L65-L68

      /** @property {number} The total items will be shown on the first load. */
      const DEFAULT_LAZY_LOADING_ITEMS_FIRST_LOAD = 5;
      /** @property {number} The total items will be shown when click on the Show more activities button. */
      const DEFAULT_LAZY_LOADING_ITEMS_OTHER_LOAD = 10;

            Unassigned Unassigned
            smhr Samuel Mehrbrodt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.