mod_data/importmappingdialogue

Javascript module for deleting a database as a preset.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(static, constant) init

Source:

Initialize module

Methods

(inner) buildModal(params) → {Object}

Source:

Given an object we want to build a modal ready to show

Parameters:
Name Type Description
params Object

the modal params

Properties
Name Type Description
title Promise
body Promise
footer Promise
Returns:

The modal ready to display immediately and render body in later.

Type
Object

(inner) getMappingButtons(cmId, presetName) → {array}

Source:

Add buttons to render on mapping modal.

Parameters:
Name Type Description
cmId int

The id of the current database activity.

presetName string

The preset name to delete.

Returns:

Same data with buttons.

Type
array

(inner) getMappingInformation(cmId, presetName) → {promise}

Source:

Check whether we should show the mapping dialogue or not.

Parameters:
Name Type Description
cmId int

The id of the current database activity.

presetName string

The preset name to delete.

Returns:

Resolved with the result and warnings of deleting a preset.

Type
promise

(inner) registerEventListeners()

Source:

Register events.

(inner) showMappingDialogue(usepreset)

Source:

Show the confirmation modal for uploading a preset.

Parameters:
Name Type Description
usepreset HTMLElement

the preset to import.