[BUG] Hide login button when setting is disabled#2049
Conversation
| emailAuthRow.loginButton.isHidden = !settings.isUsernameEmailAuthenticationEnabled | ||
|
|
||
| if !settings.isUsernameEmailAuthenticationEnabled { | ||
| emailAuthRow.registerButton.isHidden = true |
There was a problem hiding this comment.
@rafaelks we could put the new line inside the if block. That way we would evaluate settings.isUsernameAuthenticationEnabled just once.
|
@rafaelks actually if |
|
@filipealva Done! |
|
@rafaelks Nice! but just hiding the cell still let us considering its height on uitableview's content size, which means that if you have a server with a certain number of login services you'll have an issue with an extra offset |
|
@filipealva I see... this is not using AutoLayout, so when the registerButton was hidden it was already having a white space. Will make some adjustments here. |
Codecov Report
@@ Coverage Diff @@
## develop #2049 +/- ##
==========================================
+ Coverage 35.74% 36.24% +0.5%
==========================================
Files 374 374
Lines 17432 17428 -4
==========================================
+ Hits 6231 6317 +86
+ Misses 11201 11111 -90
Continue to review full report at Codecov.
|
@RocketChat/ios