From bd1f09c644256bd97cbee00292f1cf5def3c555b Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 7 Dec 2023 12:27:18 +0200 Subject: [PATCH] Add loader for chat renaming --- public/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/script.js b/public/script.js index 517995f44..46a657ef4 100644 --- a/public/script.js +++ b/public/script.js @@ -8161,6 +8161,7 @@ jQuery(async function () { }; try { + showLoader(); const response = await fetch('/api/chats/rename', { method: 'POST', body: JSON.stringify(body), @@ -8195,6 +8196,8 @@ jQuery(async function () { } catch { await delay(500); await callPopup('An error has occurred. Chat was not renamed.', 'text'); + } finally { + hideLoader(); } });