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:
Wolfsblvt
2025-01-28 20:53:55 +01:00
parent 6081b9f0ce
commit 2344d98e20
4 changed files with 60 additions and 71 deletions

View File

@ -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);