better error for anonymous interaction attempt

This commit is contained in:
byte[] 2019-12-10 22:21:18 -05:00
parent 62d9908670
commit 6108dbab3f
2 changed files with 2 additions and 2 deletions

View file

@ -181,7 +181,7 @@ function bindInteractions() {
function loggedOutInteractions() { function loggedOutInteractions() {
[].forEach.call(document.querySelectorAll('.interaction--fave,.interaction--upvote,.interaction--downvote'), [].forEach.call(document.querySelectorAll('.interaction--fave,.interaction--upvote,.interaction--downvote'),
a => a.setAttribute('href', '/users/sign_in')); a => a.setAttribute('href', '/session/new'));
} }
function setupInteractions() { function setupInteractions() {

View file

@ -24,5 +24,5 @@ span.tag.dropdown data-tag-category="#{@tag.category}" data-tag-id="#{@tag.id}"
a.tag__dropdown__link.hidden data-method="delete" data-remote="true" data-tag-action="unhide" href=Routes.filter_hide_path(@conn, :delete, tag: @tag) Unhide a.tag__dropdown__link.hidden data-method="delete" data-remote="true" data-tag-action="unhide" href=Routes.filter_hide_path(@conn, :delete, tag: @tag) Unhide
a.tag__dropdown__link.hidden data-method="post" data-remote="true" data-tag-action="hide" href=Routes.filter_hide_path(@conn, :create, tag: @tag) Hide a.tag__dropdown__link.hidden data-method="post" data-remote="true" data-tag-action="hide" href=Routes.filter_hide_path(@conn, :create, tag: @tag) Hide
a.tag__dropdown__link.hidden href="/users/sign_in" Sign in to Watch a.tag__dropdown__link.hidden href="/session/new" Sign in to Watch
a.tag__dropdown__link.hidden href="/filters" Filter a.tag__dropdown__link.hidden href="/filters" Filter