Details
-
Sub-task
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
6
-
Orion
-
Orion.Cycle6.Sprint2, Orion.Cycle6.Sprint3
-
Undetermined
Description
As an editor, I want to see the offline document indicator on "Edit document" button Experience Manager if the document in the component is offline so that I don't publish the page or the website without publishing the document in the component.
For the button, there's an HTML comment in the markup:
<!-- {"HST-Type":"MANAGE_CONTENT_LINK","uuid":"18e36c35-429d-4fee-b76e-eeabcbfc08bb"} -->
The idea is to have an attribute "HST-Offline-Document":"true" if the uuid is referencing a document that is offline, has no live variant.
The channel manager front-end button should respond to the attribute.
In the overlay.service we will modify the EDIT_CONTENT case in the addLinkMArkup function to add the different color and extra icon for component that has a offline document.
this._addLinkMarkup(overlayElement, contentLinkSvg, 'EDIT_CONTENT', 'qa-content-link');
to change the positioning of the buttons (we will need because according to the design we will make the button smaller) we have to change the positioning algorithm of overlays in overlay service