-
- |
-
- |
-
-
- |
-
-
- |
-
-
- |
-
- {emojis}
+
+
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+ {emojis}
+
diff --git a/webapp/components/form_error.jsx b/webapp/components/form_error.jsx
index df6fa3ab0d..9dce98ae90 100644
--- a/webapp/components/form_error.jsx
+++ b/webapp/components/form_error.jsx
@@ -9,7 +9,7 @@ export default class FormError extends React.Component {
return {
type: React.PropTypes.node,
error: React.PropTypes.node,
- margin: React.PropTypes.node,
+ margin: React.PropTypes.bool,
errors: React.PropTypes.arrayOf(React.PropTypes.node)
};
}
diff --git a/webapp/components/get_link_modal.jsx b/webapp/components/get_link_modal.jsx
index 5363ad217f..8d4cbbc1cf 100644
--- a/webapp/components/get_link_modal.jsx
+++ b/webapp/components/get_link_modal.jsx
@@ -90,10 +90,11 @@ export default class GetLinkModal extends React.Component {
className='form-control no-resize min-height'
ref='textarea'
value={this.props.link}
+ readOnly={true}
/>
);
- var copyLinkConfirm = null;
+ let copyLinkConfirm = null;
if (this.state.copiedLink) {
copyLinkConfirm = (
diff --git a/webapp/components/header_footer_template.jsx b/webapp/components/header_footer_template.jsx
index 0c5f538614..b508d9ba5b 100644
--- a/webapp/components/header_footer_template.jsx
+++ b/webapp/components/header_footer_template.jsx
@@ -21,6 +21,7 @@ export default class NotLoggedIn extends React.Component {
if (global.window.mm_config.HelpLink) {
content.push(
-
+ {localizeMessage('add_outgoing_webhook.triggerWordsTriggerWhenFullWord', 'First word matches a trigger word exactly')}
diff --git a/webapp/components/integrations/components/commands_container.jsx b/webapp/components/integrations/components/commands_container.jsx
index 1c2b7af3ef..4ab4652182 100644
--- a/webapp/components/integrations/components/commands_container.jsx
+++ b/webapp/components/integrations/components/commands_container.jsx
@@ -2,7 +2,6 @@
// See License.txt for license information.
import IntegrationStore from 'stores/integration_store.jsx';
-import TeamStore from 'stores/team_store.jsx';
import UserStore from 'stores/user_store.jsx';
import {loadTeamCommands} from 'actions/integration_actions.jsx';
@@ -12,8 +11,8 @@ import React from 'react';
export default class CommandsContainer extends React.Component {
static get propTypes() {
return {
- team: React.propTypes.object.isRequired,
- children: React.propTypes.node.isRequired
+ team: React.PropTypes.object,
+ children: React.PropTypes.node
};
}
@@ -23,10 +22,10 @@ export default class CommandsContainer extends React.Component {
this.handleIntegrationChange = this.handleIntegrationChange.bind(this);
this.handleUserChange = this.handleUserChange.bind(this);
- const teamId = TeamStore.getCurrentId();
+ const teamId = this.props.team ? this.props.team.id : '';
this.state = {
- commands: IntegrationStore.getCommands(teamId),
+ commands: IntegrationStore.getCommands(teamId) || [],
loading: !IntegrationStore.hasReceivedCommands(teamId),
users: UserStore.getProfiles()
};
@@ -47,7 +46,7 @@ export default class CommandsContainer extends React.Component {
}
handleIntegrationChange() {
- const teamId = TeamStore.getCurrentId();
+ const teamId = this.props.team.id;
this.setState({
commands: IntegrationStore.getCommands(teamId),
diff --git a/webapp/components/integrations/components/confirm_integration.jsx b/webapp/components/integrations/components/confirm_integration.jsx
index 1cc1e727b8..6d778f2417 100644
--- a/webapp/components/integrations/components/confirm_integration.jsx
+++ b/webapp/components/integrations/components/confirm_integration.jsx
@@ -15,7 +15,7 @@ import Constants from 'utils/constants.jsx';
export default class ConfirmIntegration extends React.Component {
static get propTypes() {
return {
- team: React.PropTypes.object.isRequired,
+ team: React.PropTypes.object,
location: React.PropTypes.object,
loading: React.PropTypes.bool
};
@@ -159,7 +159,7 @@ export default class ConfirmIntegration extends React.Component {
helpText = [];
helpText.push(
-
+
);
helpText.push(
-
+
+
{' - '}
-
-
+
{' - '}
-
-
- );
- }
-
if (gitlabSigninEnabled) {
loginControls.push(
{
AppDispatcher.handleServerAction({
- type: ActionTypes.RECEIVED_COMMAND,
+ type: ActionTypes.UPDATED_COMMAND,
command: data
});
@@ -1576,4 +1576,4 @@ export function listReactions(channelId, postId) {
dispatchError(err, 'listReactions');
}
);
-}
\ No newline at end of file
+}
diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx
index 2c881e024a..1eac2732b0 100644
--- a/webapp/utils/constants.jsx
+++ b/webapp/utils/constants.jsx
@@ -90,7 +90,7 @@ export const ActionTypes = keyMirror({
RECEIVED_PROFILES_IN_TEAM: null,
RECEIVED_PROFILE: null,
RECEIVED_PROFILES_IN_CHANNEL: null,
- RECEIVED_PROFILE_NOT_IN_CHANNEL: null,
+ RECEIVED_PROFILES_NOT_IN_CHANNEL: null,
RECEIVED_ME: null,
RECEIVED_SESSIONS: null,
RECEIVED_AUDITS: null,
|