mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Merge pull request #115 from nickago/MM-1425
MM-1425 Facelifted "direct message" to "private message"
This commit is contained in:
@@ -49,7 +49,7 @@ module.exports = React.createClass({
|
||||
<span aria-hidden="true">×</span>
|
||||
<span className="sr-only">Close</span>
|
||||
</button>
|
||||
<h4 className="modal-title">More Direct Messages</h4>
|
||||
<h4 className="modal-title">More Private Messages</h4>
|
||||
</div>
|
||||
<div className="modal-body">
|
||||
<ul className="nav nav-pills nav-stacked">
|
||||
|
||||
@@ -336,13 +336,13 @@ module.exports = React.createClass({
|
||||
<div className="channel-intro-profile">
|
||||
<strong><UserProfile userId={teammate.id} /></strong>
|
||||
</div>
|
||||
<p className="channel-intro-text">{"This is the start of your direct message history with " + teammate_name + "." }<br/>{"Direct messages and files shared here are not shown to people outside this area."}</p>
|
||||
<p className="channel-intro-text">{"This is the start of your private message history with " + teammate_name + "." }<br/>{"Private messages and files shared here are not shown to people outside this area."}</p>
|
||||
</div>
|
||||
);
|
||||
} else {
|
||||
more_messages = (
|
||||
<div className="channel-intro">
|
||||
<p className="channel-intro-text">{"This is the start of your direct message history with this " + strings.Team + "mate. Direct messages and files shared here are not shown to people outside this area."}</p>
|
||||
<p className="channel-intro-text">{"This is the start of your private message history with this " + strings.Team + "mate. Private messages and files shared here are not shown to people outside this area."}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ SearchItem = React.createClass({
|
||||
|
||||
if (channel) {
|
||||
if (channel.type === 'D') {
|
||||
channelName = "Direct Message";
|
||||
channelName = "Private Message";
|
||||
} else {
|
||||
channelName = channel.display_name;
|
||||
}
|
||||
|
||||
@@ -409,7 +409,7 @@ var SidebarLoggedIn = React.createClass({
|
||||
{privateChannelItems}
|
||||
</ul>
|
||||
<ul className="nav nav-pills nav-stacked">
|
||||
<li><h4>Direct Messages</h4></li>
|
||||
<li><h4>Private Messages</h4></li>
|
||||
{directMessageItems}
|
||||
{ this.state.hideDirectChannels.length > 0 ?
|
||||
<li><a href="#" data-toggle="modal" className="nav-more" data-target="#more_direct_channels" data-channels={JSON.stringify(this.state.hideDirectChannels)}>{"More ("+this.state.hideDirectChannels.length+")"}</a></li>
|
||||
|
||||
@@ -179,7 +179,7 @@ var NotificationsTab = React.createClass({
|
||||
</div>
|
||||
<div className="radio">
|
||||
<label>
|
||||
<input type="radio" checked={notifyActive[1]} onClick={function(){self.handleNotifyRadio("mention")}}>Only for mentions and direct messages</input>
|
||||
<input type="radio" checked={notifyActive[1]} onClick={function(){self.handleNotifyRadio("mention")}}>Only for mentions and private messages</input>
|
||||
</label>
|
||||
<br/>
|
||||
</div>
|
||||
@@ -203,7 +203,7 @@ var NotificationsTab = React.createClass({
|
||||
} else {
|
||||
var describe = "";
|
||||
if (this.state.notify_level === "mention") {
|
||||
describe = "Only for mentions and direct messages";
|
||||
describe = "Only for mentions and private messages";
|
||||
} else if (this.state.notify_level === "none") {
|
||||
describe = "Never";
|
||||
} else {
|
||||
@@ -282,7 +282,7 @@ var NotificationsTab = React.createClass({
|
||||
<button className={"btn btn-default "+emailActive[0]} onClick={function(){self.handleEmailRadio("true")}}>On</button>
|
||||
<button className={"btn btn-default "+emailActive[1]} onClick={function(){self.handleEmailRadio("false")}}>Off</button>
|
||||
</div>
|
||||
<div><br/>{"Email notifications are sent for mentions and direct messages after you have been away from " + config.SiteName + " for 5 minutes."}</div>
|
||||
<div><br/>{"Email notifications are sent for mentions and private messages after you have been away from " + config.SiteName + " for 5 minutes."}</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user