ProjectLibertyLabs / social-app-template

Social Application Template that uses Gateway Services
Apache License 2.0
1 stars 4 forks source link

disable button if string is empty #127

Closed claireolmstead closed 3 months ago

claireolmstead commented 3 months ago

Purpose

The goal of this PR is to disable the post button if no message

Closes #84

Solution

Add check for length of message

Change summary

Steps to Verify

  1. Click on button to create a post
  2. Submit button default should be disabled
  3. If more that 0 characters, you should be able to submit

Additional details / screenshot

Uploading Screen Recording 2024-07-30 at 12.53.47 PM.mov…

claireolmstead commented 3 months ago

Might eventually want to allow photo/video only post, but this works!

@wilwade I agree. For now, the backend doesn't support a post without a message to I wanted the UI to reflect that.