mirror of
https://github.com/balzack/databag.git
synced 2025-03-13 00:50:03 +00:00
fix syncing of card profiles
This commit is contained in:
parent
bff7471b5b
commit
a1549747db
@ -151,8 +151,8 @@ export function useCardContext() {
|
||||
// sync profile
|
||||
if (card.data.setNotifiedProfile !== card.data.curNotifiedProfile) {
|
||||
if (card.data.profileRevision !== card.data.curNotifiedProfile) {
|
||||
const token = `${cardProfile.guid}.${cardDetail.token}`;
|
||||
const message = await getContactProfile(cardProfile.node, token);
|
||||
const cardToken = `${cardProfile.guid}.${cardDetail.token}`;
|
||||
const message = await getContactProfile(cardProfile.node, cardToken);
|
||||
await setCardProfile(token, card.id, message);
|
||||
}
|
||||
}
|
||||
|
@ -5,10 +5,12 @@
|
||||
.ant-modal-title {
|
||||
padding-top: 16px !important;
|
||||
padding-left: 16px !important;
|
||||
padding-right: 16px !important;
|
||||
}
|
||||
|
||||
.ant-modal-footer {
|
||||
padding-right: 16px !important;
|
||||
padding-left: 16px !important;
|
||||
padding-bottom: 16px !important;
|
||||
}
|
||||
|
||||
|
@ -158,7 +158,7 @@ export function Profile({ closeProfile }) {
|
||||
</div>
|
||||
)}
|
||||
<Modal title="Profile Image" centered visible={state.editProfileImage} footer={editImageFooter}
|
||||
style={{ padding: 16 }} onCancel={actions.clearEditProfileImage}>
|
||||
bodyStyle={{ padding: 16 }} onCancel={actions.clearEditProfileImage}>
|
||||
|
||||
<ProfileImageWrapper>
|
||||
<Cropper image={state.editImage} crop={state.crop} zoom={state.zoom} aspect={1}
|
||||
@ -167,7 +167,7 @@ export function Profile({ closeProfile }) {
|
||||
|
||||
</Modal>
|
||||
<Modal title="Profile Details" centered visible={state.editProfileDetails} footer={editDetailsFooter}
|
||||
style={{ padding: 16 }} onCancel={actions.clearEditProfileDetails}>
|
||||
bodyStyle={{ padding: 16 }} onCancel={actions.clearEditProfileDetails}>
|
||||
|
||||
<ProfileDetailsWrapper>
|
||||
<div class="info">
|
||||
|
Loading…
Reference in New Issue
Block a user