fix support for new modals

This commit is contained in:
SrGooglo 2023-07-12 17:14:56 +00:00
parent 28d5478875
commit 8d779ee645
2 changed files with 9 additions and 4 deletions

View File

@ -2,6 +2,12 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 30px;
background-color: var(--background-color-accent);
border-radius: 12px;
.field { .field {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -10,7 +16,6 @@
.value { .value {
margin-top: 5px; margin-top: 5px;
margin-left: 20px;
.ant-select { .ant-select {
min-width: 200px; min-width: 200px;

View File

@ -89,7 +89,7 @@ export default (props) => {
if (result) { if (result) {
app.message.success("Profile updated") app.message.success("Profile updated")
app.ModalController.close() app.layout.modal.close()
M_Profiles() M_Profiles()
} }
@ -116,7 +116,7 @@ export default (props) => {
if (result) { if (result) {
app.message.success("Profile deleted") app.message.success("Profile deleted")
app.ModalController.close() app.layout.modal.close()
setSelectedProfileId(null) setSelectedProfileId(null)
@ -131,7 +131,7 @@ export default (props) => {
return return
} }
app.ModalController.open(() => <ProfileEditor app.layout.modal.open("profile_editor", () => <ProfileEditor
profileData={profileData} profileData={profileData}
onDelete={handleCurrentProfileDelete} onDelete={handleCurrentProfileDelete}
onSave={handleCurrentProfileDataUpdate} onSave={handleCurrentProfileDataUpdate}