mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-22 11:10:33 +00:00
fix(frontend): add Mattermost to webhook service type dropdown
The Mattermost webhook template was added to the backend (d1979552)
but the frontend service dropdown wasn't updated, so users couldn't
select Mattermost as a service type.
Adds mattermost to:
- serviceName mapping
- service selection array
- service description ternary
Fixes #1084
This commit is contained in:
parent
0267d1aa8a
commit
607a303b77
1 changed files with 17 additions and 13 deletions
|
|
@ -310,6 +310,7 @@ export function WebhookConfig(props: WebhookConfigProps) {
|
|||
generic: 'Generic',
|
||||
discord: 'Discord',
|
||||
slack: 'Slack',
|
||||
mattermost: 'Mattermost',
|
||||
telegram: 'Telegram',
|
||||
teams: 'Microsoft Teams',
|
||||
'teams-adaptive': 'Teams (Adaptive)',
|
||||
|
|
@ -440,6 +441,7 @@ export function WebhookConfig(props: WebhookConfigProps) {
|
|||
'generic',
|
||||
'discord',
|
||||
'slack',
|
||||
'mattermost',
|
||||
'telegram',
|
||||
'teams',
|
||||
'teams-adaptive',
|
||||
|
|
@ -469,19 +471,21 @@ export function WebhookConfig(props: WebhookConfigProps) {
|
|||
? 'Discord server webhook'
|
||||
: service === 'slack'
|
||||
? 'Slack incoming webhook'
|
||||
: service === 'telegram'
|
||||
? 'Telegram bot notifications'
|
||||
: service === 'teams'
|
||||
? 'Microsoft Teams webhook'
|
||||
: service === 'teams-adaptive'
|
||||
? 'Teams with Adaptive Cards'
|
||||
: service === 'pushover'
|
||||
? 'Mobile push notifications'
|
||||
: service === 'gotify'
|
||||
? 'Self-hosted push notifications'
|
||||
: service === 'ntfy'
|
||||
? 'Push notifications via ntfy.sh'
|
||||
: 'PagerDuty Events API v2'}
|
||||
: service === 'mattermost'
|
||||
? 'Mattermost incoming webhook'
|
||||
: service === 'telegram'
|
||||
? 'Telegram bot notifications'
|
||||
: service === 'teams'
|
||||
? 'Microsoft Teams webhook'
|
||||
: service === 'teams-adaptive'
|
||||
? 'Teams with Adaptive Cards'
|
||||
: service === 'pushover'
|
||||
? 'Mobile push notifications'
|
||||
: service === 'gotify'
|
||||
? 'Self-hosted push notifications'
|
||||
: service === 'ntfy'
|
||||
? 'Push notifications via ntfy.sh'
|
||||
: 'PagerDuty Events API v2'}
|
||||
</div>
|
||||
</button>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue