Ver código fonte

fix: Hide copy password if it is not available. Fixes #7783

master
damencho 5 anos atrás
pai
commit
4fdd4b66f7

+ 9
- 3
react/features/security/components/security-dialog/PasswordSection.js Ver arquivo

@@ -154,9 +154,15 @@ function PasswordSection({
154 154
                     <a
155 155
                         className = 'remove-password'
156 156
                         onClick = { onPasswordRemove }>{ t('dialog.Remove') }</a>
157
-                    <a
158
-                        className = 'copy-password'
159
-                        onClick = { onPasswordCopy }>{ t('dialog.copy') }</a>
157
+                    {
158
+
159
+                        // There are cases like lobby and grant moderator when password is not available
160
+                        password ? <>
161
+                            <a
162
+                                className = 'copy-password'
163
+                                onClick = { onPasswordCopy }>{ t('dialog.copy') }</a>
164
+                        </> : null
165
+                    }
160 166
                 </>
161 167
             );
162 168
         }

Carregando…
Cancelar
Salvar