mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
[DEV-226] fix modal behavior when pressing enter (#1139)
This commit is contained in:
parent
527843f00f
commit
d90b7d48c3
@ -65,12 +65,12 @@ class AdminPanelCustomTagsModal extends React.Component {
|
|||||||
<FormField name="name" label={i18n('NAME')} fieldProps={{size: 'large'}} required={nameRequired} />
|
<FormField name="name" label={i18n('NAME')} fieldProps={{size: 'large'}} required={nameRequired} />
|
||||||
<FormField name="color" label={i18n('COLOR')} decorator={ColorSelector} />
|
<FormField name="color" label={i18n('COLOR')} decorator={ColorSelector} />
|
||||||
<div className='admin-panel-custom-tags-modal__actions'>
|
<div className='admin-panel-custom-tags-modal__actions'>
|
||||||
<Button onClick={this.onDiscardClick.bind(this)} size="small">
|
|
||||||
{i18n('CANCEL')}
|
|
||||||
</Button>
|
|
||||||
<SubmitButton type="secondary" size="small">
|
<SubmitButton type="secondary" size="small">
|
||||||
{i18n('SAVE')}
|
{i18n('SAVE')}
|
||||||
</SubmitButton>
|
</SubmitButton>
|
||||||
|
<Button onClick={this.onDiscardClick.bind(this)} size="small">
|
||||||
|
{i18n('CANCEL')}
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
&__actions{
|
&__actions{
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -63,8 +63,8 @@ class InviteUserWidget extends React.Component {
|
|||||||
<Captcha ref="captcha" />
|
<Captcha ref="captcha" />
|
||||||
</div>
|
</div>
|
||||||
<div className="invite-user-widget__buttons-container">
|
<div className="invite-user-widget__buttons-container">
|
||||||
<Button onClick={(e) => {e.preventDefault(); ModalContainer.closeModal();}} type="link">{i18n('CANCEL')}</Button>
|
|
||||||
<SubmitButton type="secondary">{i18n('INVITE_USER')}</SubmitButton>
|
<SubmitButton type="secondary">{i18n('INVITE_USER')}</SubmitButton>
|
||||||
|
<Button onClick={(e) => {e.preventDefault(); ModalContainer.closeModal();}} type="link">{i18n('CANCEL')}</Button>
|
||||||
</div>
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
{this.renderMessage()}
|
{this.renderMessage()}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
&__buttons-container {
|
&__buttons-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row-reverse;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user