I’m working with the switch component and would like to replace the boolean “true/false”.
I used an if-else column for when the user is available it is true then display “text” else “text”. However, I’m missing a connection when displaying the user’s availability, on the front-end.
Yes?
So how is it configured? Are you sure it’s pointing at the correct column?
One thing I notice is that your availability column is user specific. This means that users will only be able to see their own status, and not the status of any other users. Is that your intention?
Okay.
That logic in the is_cooking column looks dodgy. You’re comparing the availability of the currently signed in user to the availability of the user in each row. Shouldn’t it just be “if availability is true then this, else that”?
And you still haven’t answered my question about your hint component…
Okay, and yes I would like to config hint component text. When the user taps the switches on, then the hint component should display “Happy Cooking” else offline.