aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Inverle <inverle@proton.me> 2025-05-10 21:06:58 +0200
committerGravatar GitHub <noreply@github.com> 2025-05-10 21:06:58 +0200
commit84d4aeb9e613a70b53d87c62d07bb4c4635290c3 (patch)
tree31c5144a7b40df5cefceb732abd7fe318dddc6d1 /app/views
parent5f74634c8324affda1ceec0b81fc50021775c6e3 (diff)
Implement loading spinner for marking as favorite/read, read/unread (#7564)
* Implement loading spinner for marking as favorite * Ensure that the correct previous icon gets set * Remove delay * Improve compatibility with various parsers Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Support multiple icons (top, bottom) * Remove preload for now * Fix CSS, remove !important * Implement read/unread and alt * Ensure correct bookmark icon gets set after error --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views')
-rw-r--r--app/views/helpers/javascript_vars.phtml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml
index cadaf9331..159d7ba9b 100644
--- a/app/views/helpers/javascript_vars.phtml
+++ b/app/views/helpers/javascript_vars.phtml
@@ -78,6 +78,7 @@ echo htmlspecialchars(json_encode([
'icons' => [
'read' => rawurlencode(_i('read')),
'unread' => rawurlencode(_i('unread')),
+ 'spinner' => '../themes/icons/spinner.svg',
],
'extensions' => $extData,
], JSON_UNESCAPED_UNICODE) ?: '', ENT_NOQUOTES, 'UTF-8');