diff options
author | Vincent Ambo <mail@tazj.in> | 2023-06-02T14·03+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2023-06-06T11·43+0000 |
commit | 20a671036586088578952f4958440f246decb06e (patch) | |
tree | 3ea4bfd3ad8bc4a6ca78989cd63d49ab3efbba1a /corp/rih/src/home.html | |
parent | 138f1ca1b90a1b0a3d1c703246c8eb8f9ff8b31a (diff) |
feat(corp/rih): activate submit button when data is complete r/6235
The completion detection is very naive for now, but baby steps etc. Change-Id: Iec6eae77fca13f3fc0ee1225268eef04277b504a Reviewed-on: https://cl.tvl.fyi/c/depot/+/8702 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'corp/rih/src/home.html')
-rw-r--r-- | corp/rih/src/home.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/corp/rih/src/home.html b/corp/rih/src/home.html index 7f1ff5f332a2..df77ee1e8820 100644 --- a/corp/rih/src/home.html +++ b/corp/rih/src/home.html @@ -171,7 +171,10 @@ html! { <div id="captcha-container" class="smart-captcha mb-3" style="height: 100px" /> - <button type="submit" class="btn btn-primary" disabled=true>{"Submit"}</button> + <button type="submit" class="btn btn-primary" + disabled={!(self.record.is_complete() && self.captcha_token.is_some())}> + {"Submit"} + </button> <p class="pt-2"><i>{"This page is still under construction! Please reach out at contact@ if you have any questions."}</i></p> </form> </div> |