Class: Flags

(abstract) Flags()

It opens a dialog where the user can flag the page.

Constructor

(abstract) new Flags()

Deprecated:
  • As of Athanasius (7.3.x), with no direct replacement
Source:

Extends

  • PortletBase

Members

_reportDialogOpen :Boolean

Flag to indicate if dialog should be open.
Type:
  • Boolean
Default Value:
  • false
Source:

_selectedReason :String

Selected reason to flag.
Type:
  • String
Source:

_showConfirmationMessage :Boolean

Flag to indicate if dialog should show the confirmation message.
Type:
  • Boolean
Default Value:
  • false
Source:

_showErrorMessage :Boolean

Flag to indicate if dialog should show the error message.
Type:
  • Boolean
Default Value:
  • false
Source:

companyName :String

Company name.
Type:
  • String
Source:

(nullable) elementClasses :string

CSS classes to be applied to the element.
Type:
  • string
Default Value:
  • undefined
Source:

enabled :Boolean

Whether the form to flag is enabled or not.
Type:
  • Boolean
Source:

(non-null) flagsEnabled :Boolean

Whether the user is able to flag the page.
Type:
  • Boolean
Source:

(non-null) formData :Object

Portlet's data needed to send within the form.
Type:
  • Object
Source:

id :String

Component id.
Type:
  • String
Source:

label :Boolean

Whether to show message text as a label next to the flag icon or as a tooltip.
Type:
  • Boolean
Source:

message :String

Text to display next to the flag icon or in the tooltip.
Type:
  • String
Source:

pathTermsOfUse :String

Path to Terms of Use.
Type:
  • String
Source:

pathThemeImages :String

Path to images.
Type:
  • String
Source:

portletNamespace :String

Portlet's namespace
Type:
  • String
Source:

reasons :Object

Map (original language key and translated language key) of possible reasons to flag a content.
Type:
  • Object
Source:

reporterEmailAddress :String

Email of the user who reports the flag.
Type:
  • String
Source:

signedIn :Boolean

Wheter the user is signed in or not.
Type:
  • Boolean
Source:

uri :String

Uri to send the report fetch request.
Type:
  • String
Source:

Methods

_getReason() → {String}

Gets the reason selected by the user.
Source:
Returns:
reason
Type
String

_handleCloseDialogClick()

Closes the dialog to flag the page.
Source:

_handleFlagButtonClick()

Opens a dialog where the user can flag the page.
Source:

(protected) _handleReasonChange(event)

Checks the reason selected by the user, and allows to introduce a specific reasons if necessary.
Parameters:
Name Type Description
event Event
Source:

(protected) _handleReportButtonClick()

Forms the submit.
Source:

(protected) _sendReport(event)

Makes an ajax request to submit the data.
Parameters:
Name Type Description
event Event
Source:

created()

Source: