mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Move persona buttons to right panel
- Move all buttons from the persona list to the right panel, to the already existing ones - Common CSS class/style for '.buttons_block' - Common CSS style for a red button - Refactored a few persona buttons' functionalities
This commit is contained in:
@ -6810,7 +6810,7 @@ export function setUserName(value, { toastPersonaNameChange = true } = {}) {
|
||||
if (name1 === undefined || name1 == '')
|
||||
name1 = default_user_name;
|
||||
console.log(`User name changed to ${name1}`);
|
||||
$('#your_name').val(name1);
|
||||
$('#your_name').text(name1);
|
||||
if (toastPersonaNameChange && power_user.persona_show_notifications) {
|
||||
toastr.success(t`Your messages will now be sent as ${name1}`, t`Persona Changed`);
|
||||
}
|
||||
@ -6864,7 +6864,7 @@ export async function getSettings() {
|
||||
settings = JSON.parse(data.settings);
|
||||
if (settings.username !== undefined && settings.username !== '') {
|
||||
name1 = settings.username;
|
||||
$('#your_name').val(name1);
|
||||
$('#your_name').text(name1);
|
||||
}
|
||||
|
||||
await setUserControls(data.enable_accounts);
|
||||
|
Reference in New Issue
Block a user