alex form
This commit is contained in:
parent
0dbc04f09b
commit
139f012803
2 changed files with 7 additions and 2 deletions
|
@ -155,7 +155,7 @@ export const SkillsScreen = observer(() => {
|
|||
formBuilder={store.viewModel.Settings}
|
||||
onChange={(form) => store.updateForm({ Settings: form })}
|
||||
/>
|
||||
<ButtonV2 text="save" onClick={() => store.handleFormBuilderModalCancel} />
|
||||
<ButtonV2 text="save" onClick={() => store.handleFormBuilderModalCancel()} />
|
||||
</Modal>
|
||||
|
||||
<CoreText
|
||||
|
|
|
@ -74,7 +74,12 @@ export class SkillsStore extends UiDrawerFormState<SkillModel, HttpError> {
|
|||
}
|
||||
saveNewSkill = async () => {
|
||||
(await this.viewModel.valid<SkillModel>()).fold(
|
||||
async (model) => (await this.skillsHttpRepository.createNewSkill(model), this.handleCancel(), await this.init()),
|
||||
async (model) => (
|
||||
await this.skillsHttpRepository.createNewSkill(model),
|
||||
this.handleCancel(),
|
||||
await this.init(),
|
||||
this.editDrawer(DrawersSkills.newSkill, false)
|
||||
),
|
||||
async (e) => message.error(e)
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue