diff --git a/webapp/components/user_settings/manage_command_hooks.jsx b/webapp/components/user_settings/manage_command_hooks.jsx
index 71dcc36e98..9703664cc8 100644
--- a/webapp/components/user_settings/manage_command_hooks.jsx
+++ b/webapp/components/user_settings/manage_command_hooks.jsx
@@ -444,6 +444,35 @@ export default class ManageCommandCmds extends React.Component {
const disableButton = this.state.cmd.url === '' || (this.state.cmd.trigger === '' && !this.state.external_management);
+ let triggerInput;
+ if (!this.state.cmd.external_management) {
+ triggerInput = (
+
+ );
+ }
+
let slashCommandAutocompleteCheckbox;
if (Utils.isFeatureEnabled(PreReleaseFeatures.SLASHCMD_AUTOCMP)) {
slashCommandAutocompleteCheckbox = (
@@ -474,6 +503,110 @@ export default class ManageCommandCmds extends React.Component {
);
}
+ let autoCompleteSettings;
+ if (!this.state.cmd.external_management) {
+ autoCompleteSettings = (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {addError}
+
+
+ );
+ }
+
return (
-
- {slashCommandAutocompleteCheckbox}
-
-
-
-
-
-
-
-
+ {slashCommandAutocompleteCheckbox}
+ {triggerInput}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {addError}
-
+ {autoCompleteSettings}