Merge pull request #1233 from hmhealey/plt600
PLT-600 Added help text for the channel header and purpose dialogs
Этот коммит содержится в:
@@ -73,7 +73,7 @@ export default class EditChannelModal extends React.Component {
|
|||||||
className='modal-title'
|
className='modal-title'
|
||||||
ref='title'
|
ref='title'
|
||||||
>
|
>
|
||||||
Edit Header
|
{'Edit Header'}
|
||||||
</h4>
|
</h4>
|
||||||
);
|
);
|
||||||
if (this.state.title) {
|
if (this.state.title) {
|
||||||
@@ -82,7 +82,7 @@ export default class EditChannelModal extends React.Component {
|
|||||||
className='modal-title'
|
className='modal-title'
|
||||||
ref='title'
|
ref='title'
|
||||||
>
|
>
|
||||||
Edit Header for <span className='name'>{this.state.title}</span>
|
{'Edit Header for '}<span className='name'>{this.state.title}</span>
|
||||||
</h4>
|
</h4>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -105,11 +105,12 @@ export default class EditChannelModal extends React.Component {
|
|||||||
data-dismiss='modal'
|
data-dismiss='modal'
|
||||||
aria-label='Close'
|
aria-label='Close'
|
||||||
>
|
>
|
||||||
<span aria-hidden='true'>×</span>
|
<span aria-hidden='true'>{'×'}</span>
|
||||||
</button>
|
</button>
|
||||||
{editTitle}
|
{editTitle}
|
||||||
</div>
|
</div>
|
||||||
<div className='modal-body'>
|
<div className='modal-body'>
|
||||||
|
<p>{'Edit the text appearing next to the channel name in the channel header.'}</p>
|
||||||
<textarea
|
<textarea
|
||||||
className='form-control no-resize'
|
className='form-control no-resize'
|
||||||
rows='6'
|
rows='6'
|
||||||
@@ -125,14 +126,14 @@ export default class EditChannelModal extends React.Component {
|
|||||||
className='btn btn-default'
|
className='btn btn-default'
|
||||||
data-dismiss='modal'
|
data-dismiss='modal'
|
||||||
>
|
>
|
||||||
Cancel
|
{'Cancel'}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
type='button'
|
type='button'
|
||||||
className='btn btn-primary'
|
className='btn btn-primary'
|
||||||
onClick={this.handleEdit}
|
onClick={this.handleEdit}
|
||||||
>
|
>
|
||||||
Save
|
{'Save'}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -69,6 +69,11 @@ export default class EditChannelPurposeModal extends React.Component {
|
|||||||
title = <span>{'Edit Purpose for '}<span className='name'>{this.props.channel.display_name}</span></span>;
|
title = <span>{'Edit Purpose for '}<span className='name'>{this.props.channel.display_name}</span></span>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let channelTerm = 'Channel';
|
||||||
|
if (this.props.channel.channelType === 'P') {
|
||||||
|
channelTerm = 'Group';
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
className='modal-edit-channel-purpose'
|
className='modal-edit-channel-purpose'
|
||||||
@@ -81,6 +86,7 @@ export default class EditChannelPurposeModal extends React.Component {
|
|||||||
</Modal.Title>
|
</Modal.Title>
|
||||||
</Modal.Header>
|
</Modal.Header>
|
||||||
<Modal.Body>
|
<Modal.Body>
|
||||||
|
<p>{`Describe how this ${channelTerm} should be used.`}</p>
|
||||||
<textarea
|
<textarea
|
||||||
ref='purpose'
|
ref='purpose'
|
||||||
className='form-control no-resize'
|
className='form-control no-resize'
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user