first iter of manual update control

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-06-03 15:10:05 +01:00
parent 9e0aca534c
commit 0f4dc5c072
3 changed files with 35 additions and 6 deletions

View file

@ -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()}