Skip to content

Commit c67b091

Browse files
authored
Merge pull request #1113 from zhx828/fix-company-update
Update confirm model type when changing license type with user associated
2 parents 2f3088b + 30ffd16 commit c67b091

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/webapp/app/pages/companyPage/CompanyPage.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export default class CompanyPage extends React.Component<ICompanyPage> {
292292
}
293293

294294
@action.bound
295-
showConfirmModal(event: any, value: any) {
295+
onValidFormSubmit(event: any, value: any) {
296296
this.formValues = value;
297297
// Show warnings when license status is being changed and there are company users
298298
if (
@@ -304,6 +304,7 @@ export default class CompanyPage extends React.Component<ICompanyPage> {
304304
LICENSE_STATUS_UPDATE_MESSAGES[this.company.licenseStatus][
305305
this.selectedLicenseStatus
306306
];
307+
this.simpleConfirmModalType = SimpleConfirmModalType.UPDATE_COMPANY;
307308
} else {
308309
this.onConfirmUpdateCompany();
309310
}
@@ -539,7 +540,7 @@ export default class CompanyPage extends React.Component<ICompanyPage> {
539540
</Col>
540541
</Row>
541542
<AvForm
542-
onValidSubmit={this.showConfirmModal}
543+
onValidSubmit={this.onValidFormSubmit}
543544
onKeyPress={(event: any) => {
544545
if (event.which === 13) {
545546
event.preventDefault();

0 commit comments

Comments
 (0)