mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Streamline persona toasts, infos and states
- Added "info" block to persona description panel to show when a temporary persona is in use. Hide the long text behind a tooltip - Reduce toast spam even further, not showing toasts when persona panel is open - Restyle connection state buttons a bit - Designed common 'info-block' utility to show markdown-like info blocks, with CSS styling
This commit is contained in:
@ -237,6 +237,7 @@ import {
|
||||
getConnectedPersonas,
|
||||
askForPersonaSelection,
|
||||
getCurrentConnectionObj,
|
||||
isPersonaPanelOpen,
|
||||
} from './scripts/personas.js';
|
||||
import { getBackgrounds, initBackgrounds, loadBackgroundSettings, background_settings } from './scripts/backgrounds.js';
|
||||
import { hideLoader, showLoader } from './scripts/loader.js';
|
||||
@ -6811,7 +6812,7 @@ export function setUserName(value, { toastPersonaNameChange = true } = {}) {
|
||||
name1 = default_user_name;
|
||||
console.log(`User name changed to ${name1}`);
|
||||
$('#your_name').text(name1);
|
||||
if (toastPersonaNameChange && power_user.persona_show_notifications) {
|
||||
if (toastPersonaNameChange && power_user.persona_show_notifications && !isPersonaPanelOpen()) {
|
||||
toastr.success(t`Your messages will now be sent as ${name1}`, t`Persona Changed`);
|
||||
}
|
||||
saveSettingsDebounced();
|
||||
|
Reference in New Issue
Block a user