mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
fix support for new modals
This commit is contained in:
parent
28d5478875
commit
8d779ee645
@ -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;
|
||||||
|
@ -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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user