Skip to content

Commit

Permalink
hide include tags if it is microsoft teams
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeLundahl committed Sep 13, 2024
1 parent 7b12f68 commit 61f6f4c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/src/admin/components/WebhookEditModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,11 @@ export default class WebhookEditModal extends Modal {
<div className="Form-group Webhook-events">
<label className="label">{app.translator.trans('fof-webhooks.admin.settings.modal.events_label')}</label>
<p className="helpText">{app.translator.trans('fof-webhooks.admin.settings.modal.description')}</p>

<div style={{display: "block", marginTop: "30px"}}>
{
this.webhook.service() !== 'microsoft-teams' && <div style={{display: "block", marginTop: "30px"}}>
<Switch state={this.includeTags()} onchange={this.includeTags}>{"Include tags"}</Switch>
</div>
</div>
}
{Object.entries(this.events).map(([, events]) => (
<div>
{Object.entries(events)
Expand Down

0 comments on commit 61f6f4c

Please sign in to comment.