Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/foreman_webhooks/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Engine < ::Rails::Engine
initializer 'foreman_webhooks.register_plugin', before: :finisher_hook do |app|
app.reloader.to_prepare do
Foreman::Plugin.register :foreman_webhooks do
requires_foreman '>= 3.18'
requires_foreman '>= 5.0'
register_gettext

apipie_documented_controllers ["#{ForemanWebhooks::Engine.root}/app/controllers/api/v2/*.rb"]
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Tabs, Tab, TabTitleText } from '@patternfly/react-core';

import FieldConstructor from 'foremanReact/components/common/FieldConstructor/FieldConstructor';
import { sprintf, translate as __ } from 'foremanReact/common/I18n';

import './WebhookFormTabs.css';
import FieldConstructor from './FieldConstructor';

const WebhookFormTabs = ({
inputValues,
Expand Down Expand Up @@ -48,7 +48,7 @@ const WebhookFormTabs = ({
type="select"
label={__('Subscribe to')}
required
allowClear={false}
allowClear
options={availableEvents}
isLoading={isEventsLoading}
placeholder={__('Start typing to search...')}
Expand Down Expand Up @@ -93,7 +93,7 @@ const WebhookFormTabs = ({
type="select"
label={__('Template')}
required
allowClear={false}
allowClear
options={webhookTemplates}
isLoading={isTemplatesLoading}
placeholder={__('Start typing to search...')}
Expand All @@ -105,7 +105,7 @@ const WebhookFormTabs = ({
type="select"
label={__('HTTP Method')}
required
allowClear={false}
allowClear
options={httpMethods}
placeholder={__('Start typing to search...')}
/>
Expand Down Expand Up @@ -173,7 +173,6 @@ const WebhookFormTabs = ({
placeholder={__(
"Optional CAs in PEM format concatenated to verify the receiver's SSL certificate"
)}
inputSizeClass="col-md-8"
rows={8}
setValue={updateFieldValue}
/>
Expand All @@ -200,7 +199,6 @@ const WebhookFormTabs = ({
label={__('HTTP Headers')}
labelHelp={__('Optional. Must be a JSON object (ERB allowed)')}
placeholder='{&#13;&#10;"X-Shellhook-Arg-1": "value",&#13;&#10;"X-Shellhook-Arg-2": "<%= @object.id %>"&#13;&#10;}'
inputSizeClass="col-md-8"
rows={8}
setValue={updateFieldValue}
/>
Expand Down
Loading
Loading