mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for pins on options
This commit is contained in:
@@ -249,6 +249,8 @@ function create_options(data) {
|
|||||||
icon.setAttribute('data-glyph', "pin");
|
icon.setAttribute('data-glyph', "pin");
|
||||||
if (!(item.Pinned)) {
|
if (!(item.Pinned)) {
|
||||||
icon.setAttribute('style', "filter: brightness(50%);");
|
icon.setAttribute('style', "filter: brightness(50%);");
|
||||||
|
} else {
|
||||||
|
icon.removeAttribute('style');
|
||||||
}
|
}
|
||||||
iconcell.onclick = function () {
|
iconcell.onclick = function () {
|
||||||
socket.emit("Pinning", {"chunk": this.getAttribute("option_chunk"), "option": this.getAttribute("option_id")});
|
socket.emit("Pinning", {"chunk": this.getAttribute("option_chunk"), "option": this.getAttribute("option_id")});
|
||||||
|
Reference in New Issue
Block a user