2021-09-17 01:07:03 -07:00
|
|
|
<template>
|
|
|
|
<div class="mb-3">
|
2021-09-20 22:02:41 -07:00
|
|
|
<label for="slack-webhook-url" class="form-label">{{ $t("Webhook URL") }}<span style="color: red;"><sup>*</sup></span></label>
|
2021-09-17 01:07:03 -07:00
|
|
|
<input id="slack-webhook-url" v-model="$parent.notification.slackwebhookURL" type="text" class="form-control" required>
|
2021-09-20 22:02:41 -07:00
|
|
|
<label for="slack-username" class="form-label">{{ $t("Username") }}</label>
|
2021-09-17 01:07:03 -07:00
|
|
|
<input id="slack-username" v-model="$parent.notification.slackusername" type="text" class="form-control">
|
2021-09-20 22:02:41 -07:00
|
|
|
<label for="slack-iconemo" class="form-label">{{ $t("Icon Emoji") }}</label>
|
2021-09-17 01:07:03 -07:00
|
|
|
<input id="slack-iconemo" v-model="$parent.notification.slackiconemo" type="text" class="form-control">
|
2021-09-20 22:02:41 -07:00
|
|
|
<label for="slack-channel" class="form-label">{{ $t("Channel Name") }}</label>
|
2021-09-17 01:07:03 -07:00
|
|
|
<input id="slack-channel-name" v-model="$parent.notification.slackchannel" type="text" class="form-control">
|
2021-10-07 02:39:58 -07:00
|
|
|
|
2021-09-17 01:07:03 -07:00
|
|
|
<div class="form-text">
|
2021-09-20 22:02:41 -07:00
|
|
|
<span style="color: red;"><sup>*</sup></span>{{ $t("Required") }}
|
2021-10-06 09:04:13 -07:00
|
|
|
<i18n-t tag="p" keypath="aboutWebhooks" style="margin-top: 8px;">
|
2021-09-20 22:02:41 -07:00
|
|
|
<a href="https://api.slack.com/messaging/webhooks" target="_blank">https://api.slack.com/messaging/webhooks</a>
|
2021-10-06 09:04:13 -07:00
|
|
|
</i18n-t>
|
2021-09-17 01:07:03 -07:00
|
|
|
<p style="margin-top: 8px;">
|
2021-09-20 22:02:41 -07:00
|
|
|
{{ $t("aboutChannelName", [$t("slack")]) }}
|
2021-09-17 01:07:03 -07:00
|
|
|
</p>
|
|
|
|
<p style="margin-top: 8px;">
|
2021-09-20 22:02:41 -07:00
|
|
|
{{ $t("aboutKumaURL") }}
|
2021-09-17 01:07:03 -07:00
|
|
|
</p>
|
2021-09-30 04:22:17 -07:00
|
|
|
<i18n-t tag="p" keypath="emojiCheatSheet" style="margin-top: 8px;">
|
2021-09-20 22:02:41 -07:00
|
|
|
<a href="https://www.webfx.com/tools/emoji-cheat-sheet/" target="_blank">https://www.webfx.com/tools/emoji-cheat-sheet/</a>
|
|
|
|
</i18n-t>
|
2021-09-17 01:07:03 -07:00
|
|
|
</div>
|
2023-04-17 10:49:15 -07:00
|
|
|
|
|
|
|
<div class="form-check form-switch">
|
2023-06-01 06:23:13 -07:00
|
|
|
<input id="slack-channel-notify" v-model="$parent.notification.slackchannelnotify" type="checkbox" class="form-check-input">
|
|
|
|
<label for="slack-channel-notify" class="form-label">{{ $t("Notify Channel") }}</label>
|
2023-04-17 10:49:15 -07:00
|
|
|
</div>
|
2023-06-01 06:40:26 -07:00
|
|
|
<div class="form-text">
|
|
|
|
{{ $t("aboutNotifyChannel") }}
|
|
|
|
</div>
|
2021-09-17 01:07:03 -07:00
|
|
|
</div>
|
|
|
|
</template>
|