Add "Profile" action to person view

This commit is contained in:
igmaat 2023-03-02 01:49:21 +02:00 committed by Jonathan Staab
parent 222e318c2c
commit 779a34b9c5

View File

@ -57,6 +57,8 @@
actions.push({onClick: openAdvanced, label: 'Advanced', icon: 'sliders'})
}
actions.push({onClick: openProfileInfo, label: 'Profile', icon: 'info'})
if (user.getPubkey() === pubkey && $canPublish) {
actions.push({onClick: () => navigate('/profile'), label: 'Edit', icon: 'edit'})
}
@ -126,6 +128,10 @@
modal.set({type: 'person/settings', person})
}
const openProfileInfo = () => {
modal.set({type: 'person/info', person})
}
const share = () => {
modal.set({type: 'person/share', person})
}