mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-27 09:20:22 +01:00
Rename favoritetoggle to favorite
This commit is contained in:
parent
b53f42f63e
commit
ec9d43d26d
@ -22,7 +22,9 @@ class CharacterGroupOverlayState {
|
||||
}
|
||||
|
||||
class CharacterContextMenu {
|
||||
static toggleFavorite = (characterId) => {
|
||||
|
||||
|
||||
static favorite = (characterId) => {
|
||||
const character = CharacterContextMenu.getCharacter(characterId);
|
||||
const data = {
|
||||
name: character.name,
|
||||
@ -256,7 +258,7 @@ class CharacterGroupOverlay {
|
||||
}
|
||||
}
|
||||
|
||||
handleContextMenuFavorite = () => this.selectedCharacters.forEach(characterId => CharacterContextMenu.toggleFavorite(characterId));
|
||||
handleContextMenuFavorite = () => this.selectedCharacters.forEach(characterId => CharacterContextMenu.favorite(characterId));
|
||||
|
||||
addStateChangeCallback = callback => this.stateChangeCallbacks.push(callback);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user