mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
JSDoc, toast capitalization
This commit is contained in:
@ -2379,19 +2379,19 @@ function setFlatModeCallback() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Sets a persona name and optionally an avatar.
|
||||||
* @param {{mode: 'lookup' | 'temp' | 'all'}} namedArgs
|
* @param {{mode: 'lookup' | 'temp' | 'all'}} namedArgs Named arguments
|
||||||
* @param {string} name
|
* @param {string} name Name to set
|
||||||
* @returns
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
function setNameCallback({ mode = 'all' }, name) {
|
function setNameCallback({ mode = 'all' }, name) {
|
||||||
if (!name) {
|
if (!name) {
|
||||||
toastr.warning('you must specify a name to change to');
|
toastr.warning('You must specify a name to change to');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!['lookup', 'temp', 'all'].includes(mode)) {
|
if (!['lookup', 'temp', 'all'].includes(mode)) {
|
||||||
toastr.warning('mode must be one of "lookup", "temp" or "all"');
|
toastr.warning('Mode must be one of "lookup", "temp" or "all"');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user