mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Hide 'edit profile' on secondary devices
This commit is contained in:
parent
5a4ea93594
commit
25f0c3f700
|
@ -333,13 +333,6 @@ export class MainHeader extends React.Component<Props, any> {
|
|||
name: i18n('copyPublicKey'),
|
||||
onClick: onCopyPublicKey,
|
||||
},
|
||||
{
|
||||
id: 'editProfile',
|
||||
name: i18n('editProfile'),
|
||||
onClick: () => {
|
||||
trigger('onEditProfile');
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'showSeed',
|
||||
name: i18n('showSeed'),
|
||||
|
@ -396,6 +389,14 @@ export class MainHeader extends React.Component<Props, any> {
|
|||
}
|
||||
|
||||
if (!isSecondaryDevice) {
|
||||
// insert as second element
|
||||
menuItems.splice(1, 0, {
|
||||
id: 'editProfile',
|
||||
name: i18n('editProfile'),
|
||||
onClick: () => {
|
||||
trigger('onEditProfile');
|
||||
},
|
||||
});
|
||||
menuItems.push({
|
||||
id: 'pairNewDevice',
|
||||
name: 'Device Pairing',
|
||||
|
|
Loading…
Reference in a new issue