Location sharing > back button (#7958)
* add back/cancel buttons to share dialog Signed-off-by: Kerry Archibald <kerrya@element.io> * test buttons Signed-off-by: Kerry Archibald <kerrya@element.io> * improve weird indentation Signed-off-by: Kerry Archibald <kerrya@element.io> * relint Signed-off-by: Kerry Archibald <kerrya@element.io> * PR tweaks Signed-off-by: Kerry Archibald <kerrya@element.io> * quotes Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
7aefa34420
commit
ebc2267e52
9 changed files with 211 additions and 56 deletions
|
@ -177,10 +177,9 @@ class LocationPicker extends React.Component<ILocationPickerProps, IState> {
|
|||
<form onSubmit={this.onOk}>
|
||||
<DialogButtons
|
||||
primaryButton={_t('Share location')}
|
||||
cancelButtonClass="mx_LocationPicker_cancelButton"
|
||||
primaryIsSubmit={true}
|
||||
onPrimaryButtonClick={this.onOk}
|
||||
onCancel={this.props.onFinished}
|
||||
hasCancel={false}
|
||||
primaryDisabled={!this.state.position}
|
||||
/>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue