StagingArea class

Constructors

  • constructor of the class StagingArea

    Parameters

    • user_role: string

      the role when logged in: 'mdg', 'mus', 'com', 'syc'

    Returns StagingArea

Properties

accordionStagingArea: HTMLDivElement
btnRejectUpload: HTMLButtonElement
config_indicators: any
config_iso_codes: any
idCurrentUpload: string
lang: string
mapping_upload_uuid_to_data: any
mapping_upload_uuid_to_status: any
modalRejectUpload: any
textareaRejectionReason: HTMLTextAreaElement
uploads_infos: any
user_country_code: string

Methods

  • sends the data to the server to approve or reject an upload

    Parameters

    • dataObject: any

      dataObject that is sent to the file

    Returns void

  • builds the accordion elements, listing a user's uploads

    Returns void

  • builds the initial markup when the tab opens

    Returns void

  • shows a modal to reject the upload

    Parameters

    • event: any

      click event

    Returns void

  • builds the dataObject to send to the server to approve an upload

    Parameters

    • event: any

      click event

    Returns void

  • builds the dataObject to send to the server to reject an upload

    Returns void