mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
#2529 Prioritize disabled for UI entry state
This commit is contained in:
@@ -2875,12 +2875,12 @@ function getWorldEntry(name, data, entry) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const entryState = function () {
|
const entryState = function () {
|
||||||
if (entry.constant === true) {
|
if (entry.disable === true) {
|
||||||
|
return 'disabled';
|
||||||
|
} else if (entry.constant === true) {
|
||||||
return 'constant';
|
return 'constant';
|
||||||
} else if (entry.vectorized === true) {
|
} else if (entry.vectorized === true) {
|
||||||
return 'vectorized';
|
return 'vectorized';
|
||||||
} else if (entry.disable === true) {
|
|
||||||
return 'disabled';
|
|
||||||
} else {
|
} else {
|
||||||
return 'normal';
|
return 'normal';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user