Skip to content

EspoCRM – Open Source CRM Application

timeline animate refresh

Yuri Kuznetsov5d1584ce83df
diff --git a/client/modules/crm/src/views/calendar/timeline.js b/client/modules/crm/src/views/calendar/timeline.js
index 3d262e7ad1..2016f15874 100644
--- a/client/modules/crm/src/views/calendar/timeline.js
+++ b/client/modules/crm/src/views/calendar/timeline.js
@@ -1031,6 +1031,14 @@ class TimelineView extends View {
actionRefresh() {
this.runFetch();
+
+ const iconEl = this.element.querySelector('button[data-action="refresh"] > span');
+
+ if (iconEl) {
+ iconEl.classList.add('animation-spin-fast');
+
+ setTimeout(() => iconEl.classList.remove('animation-spin-fast'), 500);
+ }
}
getColorFromScopeName(scope) {