You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
add fancy changelog dialog
This commit is contained in:
@@ -94,6 +94,9 @@ module.exports = React.createClass({
|
|||||||
width: 10000,
|
width: 10000,
|
||||||
sideOpacity: 1.0,
|
sideOpacity: 1.0,
|
||||||
middleOpacity: 1.0,
|
middleOpacity: 1.0,
|
||||||
|
|
||||||
|
version: null,
|
||||||
|
newVersion: null,
|
||||||
};
|
};
|
||||||
return s;
|
return s;
|
||||||
},
|
},
|
||||||
@@ -856,6 +859,7 @@ module.exports = React.createClass({
|
|||||||
onVersion: function(current, latest) {
|
onVersion: function(current, latest) {
|
||||||
this.setState({
|
this.setState({
|
||||||
version: current,
|
version: current,
|
||||||
|
newVersion: latest,
|
||||||
hasNewVersion: current !== latest
|
hasNewVersion: current !== latest
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -992,7 +996,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
var topBar;
|
var topBar;
|
||||||
if (this.state.hasNewVersion) {
|
if (this.state.hasNewVersion) {
|
||||||
topBar = <NewVersionBar />;
|
topBar = <NewVersionBar version={this.state.version} newVersion={this.state.newVersion} />;
|
||||||
}
|
}
|
||||||
else if (MatrixClientPeg.get().isGuest()) {
|
else if (MatrixClientPeg.get().isGuest()) {
|
||||||
topBar = <GuestWarningBar />;
|
topBar = <GuestWarningBar />;
|
||||||
|
Reference in New Issue
Block a user