.. include:: /Includes.rst.txt .. _feature-1791120051: ======================================== Feature: New requests from the dashboard ======================================== Description =========== Dashboard widgets can now be acted on directly: - :guilabel:`My absences` offers :guilabel:`Request leave` and :guilabel:`Report sick` in a dialog. - :guilabel:`My requests` offers :guilabel:`New request` with every kind the installed packages provide: a leave request, and a time correction of a chosen day. - :guilabel:`Missing punches` links each day without a clock-out to its page to correct it; ``getDashboardMissingPunches`` answers its ``attendanceDayId``. The actions show also when a widget has nothing to list. Packages add request kinds with ``registerRequestKind()`` from ``@adsum/core/dashboard/requestKinds.js``, and widgets offer actions through ``renderActions()`` and ``openDialog()`` of ``WidgetBase``. Impact ====== Leave, sickness and corrections are filed without leaving the dashboard. .. index:: API, Frontend, package:adsum-core, package:adsum-leave, package:adsum-attendance