You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
first iter of manual update control
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -854,6 +854,27 @@ module.exports = React.createClass({
|
||||
</div>;
|
||||
},
|
||||
|
||||
_onCheckUpdates: function() {
|
||||
dis.dispatch({
|
||||
action: 'check_updates',
|
||||
value: true,
|
||||
});
|
||||
},
|
||||
|
||||
_renderCheckUpdate: function() {
|
||||
const platform = PlatformPeg.get();
|
||||
if ('canSelfUpdate' in platform && platform.canSelfUpdate()) {
|
||||
return <div>
|
||||
<h3>Updates</h3>
|
||||
<div className="mx_UserSettings_section">
|
||||
<AccessibleButton className="mx_UserSettings_button danger" onClick={this._onCheckUpdates}>
|
||||
Check for update
|
||||
</AccessibleButton>
|
||||
</div>
|
||||
</div>;
|
||||
}
|
||||
},
|
||||
|
||||
_renderBulkOptions: function() {
|
||||
const invitedRooms = MatrixClientPeg.get().getRooms().filter((r) => {
|
||||
return r.hasMembershipState(this._me, "invite");
|
||||
@@ -1246,6 +1267,8 @@ module.exports = React.createClass({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{this._renderCheckUpdate()}
|
||||
|
||||
{this._renderClearCache()}
|
||||
|
||||
{this._renderDeactivateAccount()}
|
||||
|
||||
Reference in New Issue
Block a user