Skip to content

Commit ac3f307

Browse files
gally47moesterheld
andauthored
New Inputs should start on all nodes global=true as default (#23818)
* New Inputs should start on all nodes global=true as default * cl --------- Co-authored-by: Matthias Oesterheld <[email protected]>
1 parent e1f326d commit ac3f307

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

changelog/unreleased/pr-23818.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type = "f"
2+
message = "New Inputs should start on all nodes global=true as default."
3+
4+
pulls = ["23818"]
5+
issues = ["graylog-plugin-enterprise#12081"]

graylog2-web-interface/src/components/inputs/InputForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type Props = {
4545
};
4646

4747
const InputForm = ({
48-
globalValue = false,
48+
globalValue = true,
4949
configFields,
5050
nodeValue = undefined,
5151
titleValue = undefined,
@@ -58,7 +58,7 @@ const InputForm = ({
5858
setShowModal,
5959
submitButtonText,
6060
}: Props) => {
61-
const [global, setGlobal] = useState<boolean>(globalValue ?? false);
61+
const [global, setGlobal] = useState<boolean>(globalValue ?? true);
6262
const [node, setNode] = useState<string | undefined>(nodeValue);
6363
const configFormRef = useRef(null);
6464

0 commit comments

Comments
 (0)