summaryrefslogtreecommitdiffstats
path: root/webapp/utils
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/utils')
-rw-r--r--webapp/utils/async_client.jsx6
-rw-r--r--webapp/utils/constants.jsx6
2 files changed, 9 insertions, 3 deletions
diff --git a/webapp/utils/async_client.jsx b/webapp/utils/async_client.jsx
index 185fa5b4e..674741b82 100644
--- a/webapp/utils/async_client.jsx
+++ b/webapp/utils/async_client.jsx
@@ -1257,7 +1257,7 @@ export function addIncomingHook(hook, success, error) {
});
if (success) {
- success();
+ success(data);
}
},
(err) => {
@@ -1280,7 +1280,7 @@ export function addOutgoingHook(hook, success, error) {
});
if (success) {
- success();
+ success(data);
}
},
(err) => {
@@ -1374,7 +1374,7 @@ export function addCommand(command, success, error) {
});
if (success) {
- success();
+ success(data);
}
},
(err) => {
diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx
index 24d1d6b19..05068f4ea 100644
--- a/webapp/utils/constants.jsx
+++ b/webapp/utils/constants.jsx
@@ -759,6 +759,12 @@ export const Constants = {
NotificationPrefs: {
MENTION: 'mention'
},
+ Integrations: {
+ COMMAND: 'commands',
+ INCOMING_WEBHOOK: 'incoming_webhooks',
+ OUTGOING_WEBHOOK: 'outgoing_webhooks',
+ OAUTH_APP: 'oauth2-apps'
+ },
FeatureTogglePrefix: 'feature_enabled_',
PRE_RELEASE_FEATURES: {
MARKDOWN_PREVIEW: {