Renamed EditChannelModal to EditChannelHeaderModal
Этот коммит содержится в:
@@ -4,7 +4,7 @@
|
||||
import NavbarSearchBox from './search_bar.jsx';
|
||||
import MessageWrapper from './message_wrapper.jsx';
|
||||
import PopoverListMembers from './popover_list_members.jsx';
|
||||
import EditChannelModal from './edit_channel_modal.jsx';
|
||||
import EditChannelHeaderModal from './edit_channel_header_modal.jsx';
|
||||
import EditChannelPurposeModal from './edit_channel_purpose_modal.jsx';
|
||||
import ChannelInfoModal from './channel_info_modal.jsx';
|
||||
import ChannelInviteModal from './channel_invite_modal.jsx';
|
||||
@@ -170,7 +170,7 @@ export default class ChannelHeader extends React.Component {
|
||||
>
|
||||
<ToggleModalButton
|
||||
role='menuitem'
|
||||
dialogType={EditChannelModal}
|
||||
dialogType={EditChannelHeaderModal}
|
||||
dialogProps={{channel}}
|
||||
>
|
||||
{'Set Channel Header...'}
|
||||
@@ -234,7 +234,7 @@ export default class ChannelHeader extends React.Component {
|
||||
>
|
||||
<ToggleModalButton
|
||||
role='menuitem'
|
||||
dialogType={EditChannelModal}
|
||||
dialogType={EditChannelHeaderModal}
|
||||
dialogProps={{channel}}
|
||||
>
|
||||
{`Set ${channelTerm} Header...`}
|
||||
|
||||
@@ -7,7 +7,7 @@ import * as Utils from '../utils/utils.jsx';
|
||||
|
||||
const Modal = ReactBootstrap.Modal;
|
||||
|
||||
export default class EditChannelModal extends React.Component {
|
||||
export default class EditChannelHeaderModal extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
@@ -119,7 +119,7 @@ export default class EditChannelModal extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
EditChannelModal.propTypes = {
|
||||
EditChannelHeaderModal.propTypes = {
|
||||
show: React.PropTypes.bool.isRequired,
|
||||
onHide: React.PropTypes.func.isRequired,
|
||||
channel: React.PropTypes.object.isRequired
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
import EditChannelModal from './edit_channel_modal.jsx';
|
||||
import EditChannelHeaderModal from './edit_channel_header_modal.jsx';
|
||||
import EditChannelPurposeModal from './edit_channel_purpose_modal.jsx';
|
||||
import MessageWrapper from './message_wrapper.jsx';
|
||||
import NotifyCounts from './notify_counts.jsx';
|
||||
@@ -426,7 +426,7 @@ export default class Navbar extends React.Component {
|
||||
}
|
||||
|
||||
editChannelHeaderModal = (
|
||||
<EditChannelModal
|
||||
<EditChannelHeaderModal
|
||||
show={this.state.showEditChannelHeaderModal}
|
||||
onHide={() => this.setState({showEditChannelHeaderModal: false})}
|
||||
channel={channel}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// See License.txt for license information.
|
||||
|
||||
import * as Utils from './utils.jsx';
|
||||
import EditChannelModal from '../components/edit_channel_modal.jsx';
|
||||
import EditChannelHeaderModal from '../components/edit_channel_header_modal.jsx';
|
||||
import InviteMemberModal from '../components/invite_member_modal.jsx';
|
||||
import ToggleModalButton from '../components/toggle_modal_button.jsx';
|
||||
import UserProfile from '../components/user_profile.jsx';
|
||||
@@ -52,7 +52,7 @@ export function createDMIntroMessage(channel) {
|
||||
</p>
|
||||
<ToggleModalButton
|
||||
className='intro-links'
|
||||
dialogType={EditChannelModal}
|
||||
dialogType={EditChannelHeaderModal}
|
||||
dialogProps={{channel}}
|
||||
>
|
||||
<i className='fa fa-pencil'></i>{'Set a header'}
|
||||
@@ -78,7 +78,7 @@ export function createOffTopicIntroMessage(channel, showInviteModal) {
|
||||
</p>
|
||||
<ToggleModalButton
|
||||
className='intro-links'
|
||||
dialogType={EditChannelModal}
|
||||
dialogType={EditChannelHeaderModal}
|
||||
dialogProps={{channel}}
|
||||
>
|
||||
<i className='fa fa-pencil'></i>{'Set a header'}
|
||||
@@ -133,7 +133,7 @@ export function createDefaultIntroMessage(channel) {
|
||||
{inviteModalLink}
|
||||
<ToggleModalButton
|
||||
className='intro-links'
|
||||
dialogType={EditChannelModal}
|
||||
dialogType={EditChannelHeaderModal}
|
||||
dialogProps={{channel}}
|
||||
>
|
||||
<i className='fa fa-pencil'></i>{'Set a header'}
|
||||
@@ -184,7 +184,7 @@ export function createStandardIntroMessage(channel, showInviteModal) {
|
||||
</p>
|
||||
<ToggleModalButton
|
||||
className='intro-links'
|
||||
dialogType={EditChannelModal}
|
||||
dialogType={EditChannelHeaderModal}
|
||||
dialogProps={{channel}}
|
||||
>
|
||||
<i className='fa fa-pencil'></i>{'Set a header'}
|
||||
|
||||
Ссылка в новой задаче
Block a user