mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
transfer field to add new entry of each component to global one
This commit is contained in:
@@ -4,7 +4,7 @@ import { translate } from "react-i18next";
|
||||
import { Checkbox, InputField } from "../../../components/forms/index";
|
||||
import Subtitle from "../../../components/layout/Subtitle";
|
||||
import ProxyExcludesTable from "../table/ProxyExcludesTable";
|
||||
import AddProxyExcludeField from "../fields/AddProxyExcludeField";
|
||||
import AddEntryToTableField from "../../../components/forms/AddEntryToTableField";
|
||||
|
||||
type Props = {
|
||||
proxyPassword: string,
|
||||
@@ -65,6 +65,7 @@ class ProxySettings extends React.Component<Props> {
|
||||
onChange={this.handleProxyUserChange}
|
||||
disabled={!enableProxy || !hasUpdatePermission}
|
||||
/>
|
||||
|
||||
<ProxyExcludesTable
|
||||
proxyExcludes={proxyExcludes}
|
||||
onChange={(isValid, changedValue, name) =>
|
||||
@@ -72,9 +73,12 @@ class ProxySettings extends React.Component<Props> {
|
||||
}
|
||||
disabled={!enableProxy || !hasUpdatePermission}
|
||||
/>
|
||||
<AddProxyExcludeField
|
||||
addProxyExclude={this.addProxyExclude}
|
||||
<AddEntryToTableField
|
||||
addEntry={this.addProxyExclude}
|
||||
disabled={!enableProxy || !hasUpdatePermission}
|
||||
buttonLabel={t("proxy-settings.add-proxy-exclude-button")}
|
||||
fieldLabel={t("proxy-settings.add-proxy-exclude-textfield")}
|
||||
errorMessage={t("proxy-settings.add-proxy-exclude-error")}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user