diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/permission-templates/components/Form.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/permission-templates/components/Form.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/Form.tsx b/server/sonar-web/src/main/js/apps/permission-templates/components/Form.tsx index 9b040c23812..f3eb1a147d9 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/components/Form.tsx +++ b/server/sonar-web/src/main/js/apps/permission-templates/components/Form.tsx @@ -20,17 +20,17 @@ import * as React from 'react'; import DeferredSpinner from '../../../components/common/DeferredSpinner'; import SimpleModal from '../../../components/controls/SimpleModal'; -import { translate } from '../../../helpers/l10n'; import { SubmitButton, ResetButtonLink } from '../../../components/ui/buttons'; +import { translate } from '../../../helpers/l10n'; interface Props { confirmButtonText: string; header: string; - permissionTemplate?: { description?: string; name: string; projectKeyPattern?: string }; onClose: () => void; onSubmit: ( data: { description: string; name: string; projectKeyPattern: string } ) => Promise<void>; + permissionTemplate?: { description?: string; name: string; projectKeyPattern?: string }; } interface State { @@ -79,7 +79,8 @@ export default class Form extends React.PureComponent<Props, State> { <SimpleModal header={this.props.header} onClose={this.props.onClose} - onSubmit={this.handleSubmit}> + onSubmit={this.handleSubmit} + size="small"> {({ onCloseClick, onFormSubmit, submitting }) => ( <form id="permission-template-form" onSubmit={onFormSubmit}> <header className="modal-head"> |