Javascript module for deleting a database as a preset.
- Source:
- Copyright:
- 2022 Amaia Anabitarte
- 2022 Amaia Anabitarte
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Members
(static, constant) init
Initialize module
Methods
(inner) buildModal(params) → {Object}
Given an object we want to build a modal ready to show
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | the modal params Properties
|
Returns:
The modal ready to display immediately and render body in later.
- Type
- Object
(inner) getMappingButtons(cmId, presetName) → {array}
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}
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()
Register events.
(inner) showMappingDialogue(usepreset)
Show the confirmation modal for uploading a preset.
Parameters:
Name | Type | Description |
---|---|---|
usepreset |
HTMLElement | the preset to import. |