From 68a05653ea6f2588a27c8ce523b0d213e48f6480 Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Wed, 8 Feb 2017 00:20:01 +0900 Subject: Add webapp/utils/url.jsx (#5285) webapp/utils/utils.jsx got big and that caused a potential circular dependency with webapp/stores/team_store.jsx. This change solves the issue by introducing webapp/utils/url.jsx and moving URL-related functions, which is not likely to depend on actions and stores, from webapp/utils/utils.jsx. --- webapp/components/rename_channel_modal.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webapp/components/rename_channel_modal.jsx') diff --git a/webapp/components/rename_channel_modal.jsx b/webapp/components/rename_channel_modal.jsx index 5253b1c80..9e2cfd8d8 100644 --- a/webapp/components/rename_channel_modal.jsx +++ b/webapp/components/rename_channel_modal.jsx @@ -4,6 +4,7 @@ import ReactDOM from 'react-dom'; import * as Utils from 'utils/utils.jsx'; import Constants from 'utils/constants.jsx'; +import {cleanUpUrlable} from 'utils/url.jsx'; import {intlShape, injectIntl, defineMessages, FormattedMessage} from 'react-intl'; import {updateChannel} from 'actions/channel_actions.jsx'; @@ -145,7 +146,7 @@ export class RenameChannelModal extends React.Component { state.nameError = formatMessage(holders.maxLength); state.invalid = true; } else { - const cleanedName = Utils.cleanUpUrlable(channel.name); + const cleanedName = cleanUpUrlable(channel.name); if (cleanedName === channel.name) { state.nameError = ''; } else { -- cgit v1.2.3-1-g7c22