add ujs disable hooks

This commit is contained in:
byte[] 2019-12-07 15:51:31 -05:00
parent 969822946f
commit 0db101fca4
3 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@
' [Loading preview...]
.block__content.communication-edit__actions
=> submit "Post", class: "button"
=> submit "Post", class: "button", data: [disable_with: raw("Posting…")]
= if @conn.assigns.current_user do
= checkbox f, :anonymous, value: anonymous_by_default?(@conn)

View file

@ -83,4 +83,4 @@
' [Loading preview...]
.block__content.communication-edit__actions
= submit "Post", class: "button"
= submit "Post", class: "button", data: [disable_with: raw("Posting…")]

View file

@ -25,7 +25,7 @@
' [Loading preview...]
.block__content.communication-edit__actions
= submit "Post", class: "button"
=> submit "Post", class: "button", data: [disable_with: raw("Posting…")]
= if @conn.assigns.current_user do
= checkbox f, :anonymous, value: anonymous_by_default?(@conn)