Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24450

As an admin developer, I want to push notifications using a Pjax controller

    XMLWordPrintable

Details

    Description

      A Pjax response may have notification to display (e.g. when updating a ContentType). Those messages need to be dispatched by the PlatformUI notification system.

      In a Pjax response, the notification should be a new block defining both the notification text and and the notification state. For instance:

      <div data-name="title">The title</div>
      <div data-name="html">Some html code to display</div>
      <ul data-name="notification">
          <li data-state="error">Unable to publish the content type "Article"</li>
          <li data-state="done">Something else was working :)</li>
      </ul>
      

      Where the data-state attribute is one of the supported notification states in the application (it's only a matter of CSS, see https://github.com/ezsystems/PlatformUIBundle/blob/master/Resources/public/css/theme/views/notification.css). The currently supported states are:

      • error
      • started
      • done

      Attachments

        Activity

          People

            Unassigned Unassigned
            jerome.vieilledent-obsolete@ez.no Jérôme Vieilledent (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 2 hours Remaining Estimate - 6 hours
                6h
                Logged:
                Time Spent - 2 hours Remaining Estimate - 6 hours
                2h