From 7c0cb09442ffeef75367da54705e261bd90c0125 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Tue, 11 Feb 2020 12:52:57 +0100 Subject: [PATCH] Notify people of 401s during ajax calls Fixes #592 --- app/views/devise/ichain_sessions/new.js.erb | 1 + app/views/devise/ichain_sessions/new_test.js.erb | 1 + 2 files changed, 2 insertions(+) create mode 100644 app/views/devise/ichain_sessions/new.js.erb create mode 120000 app/views/devise/ichain_sessions/new_test.js.erb diff --git a/app/views/devise/ichain_sessions/new.js.erb b/app/views/devise/ichain_sessions/new.js.erb new file mode 100644 index 000000000..0ed5c29f6 --- /dev/null +++ b/app/views/devise/ichain_sessions/new.js.erb @@ -0,0 +1 @@ +$('#flash').html('
Unauthorized: Please Sign In!
'); diff --git a/app/views/devise/ichain_sessions/new_test.js.erb b/app/views/devise/ichain_sessions/new_test.js.erb new file mode 120000 index 000000000..e330389be --- /dev/null +++ b/app/views/devise/ichain_sessions/new_test.js.erb @@ -0,0 +1 @@ +new.js.erb \ No newline at end of file