Skip to content

Commit

Permalink
fix: Hide copy password if it is not available. Fixes jitsi#7783
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Nov 6, 2020
1 parent 9fa29d7 commit 4fdd4b6
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,15 @@ function PasswordSection({
<a
className = 'remove-password'
onClick = { onPasswordRemove }>{ t('dialog.Remove') }</a>
<a
className = 'copy-password'
onClick = { onPasswordCopy }>{ t('dialog.copy') }</a>
{

// There are cases like lobby and grant moderator when password is not available
password ? <>
<a
className = 'copy-password'
onClick = { onPasswordCopy }>{ t('dialog.copy') }</a>
</> : null
}
</>
);
}
Expand Down

0 comments on commit 4fdd4b6

Please sign in to comment.