- Description:
Various actions on badges - enabling, disabling, etc.
- Source:
- Copyright:
- 2024 Sara Arjona
- 2024 Sara Arjona
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Various actions on badges - enabling, disabling, etc.
Members
(static, constant) init
- Description:
Initialize module.
- Source:
Initialize module.
Methods
(async, inner) disableBadge(badgeId, badgeName, reportElement)
- Description:
Disable the badge.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
badgeId |
Number | The id of the badge to disable. |
badgeName |
String | The name of the badge to enable. |
reportElement |
HTMLElement | the report element. |
(async, inner) enableBadge(badgeId, badgeName, reportElement)
- Description:
Enable the badge.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
badgeId |
Number | The id of the badge to enable. |
badgeName |
String | The name of the badge to enable. |
reportElement |
HTMLElement | the report element. |
(inner) registerEventListeners()
- Description:
Register events for delete preset option in action menu.
- Source:
(inner) showDisableResultToast(badgeName, result)
- Description:
Show the result of disabling a badge.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
badgeName |
String | The name of the badge to disable. |
result |
Object | The result of disabling a badge. |
(inner) showEnableResultToast(badgeName, result)
- Description:
Show the result of enabling a badge.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
badgeName |
String | The name of the badge to enable. |
result |
Object | The result of enabling a badge. |