Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Remove cancel button from final key backup screen
Browse files Browse the repository at this point in the history
Canceling the dialog once the backup was created meant onFinished
was called with false which RoomView interprets as the backup not
being done.

This does mean you can't just hit esc to clear the dialog once you're
done: if we wanted this we could fix this in a better way.

element-hq/element-web#8066
  • Loading branch information
dbkr committed Jan 9, 2019
1 parent 1fcafda commit 9251090
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ export default React.createClass({
<BaseDialog className='mx_CreateKeyBackupDialog'
onFinished={this.props.onFinished}
title={this._titleForPhase(this.state.phase)}
hasCancel={[PHASE_DONE].includes(this.state.phase)}
hasCancel={false}
>
<div>
{content}
Expand Down

0 comments on commit 9251090

Please sign in to comment.