mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-25 00:10:11 +01:00
Add loader for chat renaming
This commit is contained in:
parent
698890ae0f
commit
bd1f09c644
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user