Skip to content

Commit 3aa1224

Browse files
authored
Merge branch 'develop' into t3chguy/devtools
2 parents b84f258 + da9dcc8 commit 3aa1224

7 files changed

Lines changed: 32 additions & 9 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ released version of Riot:
1616

1717
1. Download the latest version from https://github.com/vector-im/riot-web/releases
1818
1. Untar the tarball on your web server
19-
1. Move (or symlink) the vector-x.x.x directory to an appropriate name
19+
1. Move (or symlink) the riot-x.x.x directory to an appropriate name
2020
1. If desired, copy `config.sample.json` to `config.json` and edit it
2121
as desired. See below for details.
2222
1. Enter the URL into your browser and log into Riot!

‎src/components/structures/LoginBox.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = React.createClass({
8484

8585
var self = this;
8686
return (
87-
<div className="mx_SearchBox">
87+
<div className="mx_SearchBox mx_LoginBox">
8888
{ loginButton }
8989
{ toggleCollapse }
9090
</div>

‎src/components/structures/RoomSubList.js‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ var RoomSubList = React.createClass({
7878
// undefined if no room is selected (eg we are showing settings)
7979
selectedRoom: React.PropTypes.string,
8080

81+
// passed through to RoomTile and used to highlight room with `!` regardless of notifications count
82+
isInvite: React.PropTypes.bool,
83+
8184
startAsHidden: React.PropTypes.bool,
8285
showSpinner: React.PropTypes.bool, // true to show a spinner if 0 elements when expanded
8386
collapsed: React.PropTypes.bool.isRequired, // is LeftPanel collapsed?
@@ -246,7 +249,7 @@ var RoomSubList = React.createClass({
246249
return this.props.list.reduce(function(result, room, index) {
247250
if (truncateAt === undefined || index >= truncateAt) {
248251
var roomNotifState = RoomNotifs.getRoomNotifsState(room.roomId);
249-
var highlight = room.getUnreadNotificationCount('highlight') > 0 || self.props.label === 'Invites';
252+
var highlight = room.getUnreadNotificationCount('highlight') > 0 || self.props.isInvite;
250253
var notificationCount = room.getUnreadNotificationCount();
251254

252255
const notifBadges = notificationCount > 0 && self._shouldShowNotifBadge(roomNotifState);
@@ -376,8 +379,8 @@ var RoomSubList = React.createClass({
376379
collapsed={ self.props.collapsed || false}
377380
selected={ selected }
378381
unread={ Unread.doesRoomHaveUnreadMessages(room) }
379-
highlight={ room.getUnreadNotificationCount('highlight') > 0 || self.props.label === 'Invites' }
380-
isInvite={ self.props.label === 'Invites' }
382+
highlight={ room.getUnreadNotificationCount('highlight') > 0 || self.props.isInvite }
383+
isInvite={ self.props.isInvite }
381384
refreshSubList={ self._updateSubListCount }
382385
incomingCall={ null }
383386
onClick={ self.onRoomTileClick }
@@ -409,6 +412,9 @@ var RoomSubList = React.createClass({
409412
var badge;
410413
if (subListNotifCount > 0) {
411414
badge = <div className={badgeClasses}>{ FormattingUtils.formatCount(subListNotifCount) }</div>;
415+
} else if (this.props.isInvite) {
416+
// no notifications but highlight anyway because this is an invite badge
417+
badge = <div className={badgeClasses}>!</div>;
412418
}
413419

414420
// When collapsed, allow a long hover on the header to show user

‎src/components/views/dialogs/BugReportDialog.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
import React from 'react';
1818
import sdk from 'matrix-react-sdk';
1919
import SdkConfig from 'matrix-react-sdk/lib/SdkConfig';
20+
import Modal from 'matrix-react-sdk/lib/Modal';
2021
import { _t } from 'matrix-react-sdk/lib/languageHandler';
2122

2223
export default class BugReportDialog extends React.Component {
@@ -64,8 +65,13 @@ export default class BugReportDialog extends React.Component {
6465
progressCallback: this._sendProgressCallback,
6566
}).then(() => {
6667
if (!this._unmounted) {
67-
this.setState({ busy: false, progress: null });
6868
this.props.onFinished(false);
69+
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
70+
Modal.createTrackedDialog('Bug report sent', '', QuestionDialog, {
71+
title: _t('Bug report sent'),
72+
description: _t('Thank you!'),
73+
hasCancelButton: false,
74+
});
6975
}
7076
}, (err) => {
7177
if (!this._unmounted) {

‎src/components/views/login/VectorLoginFooter.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = React.createClass({
3030
<div className="mx_Login_links">
3131
<a href="https://medium.com/@RiotChat">blog</a>&nbsp;&nbsp;&middot;&nbsp;&nbsp;
3232
<a href="https://twitter.com/@RiotChat">twitter</a>&nbsp;&nbsp;&middot;&nbsp;&nbsp;
33-
<a href="https://github.com/vector-im/vector-web">github</a>&nbsp;&nbsp;&middot;&nbsp;&nbsp;
33+
<a href="https://github.com/vector-im/riot-web">github</a>&nbsp;&nbsp;&middot;&nbsp;&nbsp;
3434
<a href="https://matrix.org">{ _t('powered by Matrix') }</a>
3535
</div>
3636
);

‎src/i18n/strings/en_EN.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"All notifications are currently disabled for all targets.": "All notifications are currently disabled for all targets.",
1111
"An error occurred whilst saving your email notification preferences.": "An error occurred whilst saving your email notification preferences.",
1212
"Back": "Back",
13+
"Bug report sent": "Bug report sent",
1314
"Call invitation": "Call invitation",
1415
"Cancel": "Cancel",
1516
"Cancel Sending": "Cancel Sending",
@@ -155,6 +156,7 @@
155156
"You are not receiving desktop notifications": "You are not receiving desktop notifications",
156157
"You are Rioting as a guest. <a>Register</a> or <a>sign in</a> to access more rooms and features!": "You are Rioting as a guest. <a>Register</a> or <a>sign in</a> to access more rooms and features!",
157158
"You might have configured them in a client other than Riot. You cannot tune them in Riot but they still apply": "You might have configured them in a client other than Riot. You cannot tune them in Riot but they still apply",
159+
"Thank you!": "Thank you!",
158160
"Sunday": "Sunday",
159161
"Monday": "Monday",
160162
"Tuesday": "Tuesday",

‎src/skins/vector/css/matrix-react-sdk/structures/_LoginBox.scss‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,34 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
.mx_LoginBox {
18+
min-height: 24px;
19+
height: unset !important;
20+
padding-top: 13px !important;
21+
padding-bottom: 14px !important;
22+
}
23+
1724
.mx_LoginBox_loginButton_wrapper {
1825
text-align: center;
1926
width: 100%;
2027
}
2128

2229
.mx_LoginBox_loginButton,
2330
.mx_LoginBox_registerButton {
24-
margin-top: -8px;
31+
margin-top: 3px;
2532
height: 40px;
2633
border: 0px;
2734
border-radius: 40px;
2835
margin-left: 4px;
2936
margin-right: 4px;
30-
width: 80px;
37+
min-width: 80px;
3138

3239
background-color: $accent-color;
3340
color: $primary-bg-color;
3441

3542
cursor: pointer;
3643

3744
font-size: 15px;
45+
padding: 0 11px;
46+
word-break: break-word;
3847
}

0 commit comments

Comments
 (0)