mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Remove enable/disable for generated images
Not really a point of having a disabled state if you can just not check images...
This commit is contained in:
@@ -1312,13 +1312,6 @@ td.server_vars {
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
#screenshot-wizard .distribution-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#screenshot-options .indent {
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
@@ -6935,17 +6935,11 @@ $el(".gametext").addEventListener("keydown", function(event) {
|
||||
(async function() {
|
||||
const screenshotTarget = $el("#screenshot-target");
|
||||
const screenshotImagePicker = $el("#screenshot-image-picker");
|
||||
const genImgToggle = $el("#sw-gen-img");
|
||||
const attributionToggle = $el("#sw-attribution");
|
||||
const screenshotImageContainer = $el("#screenshot-images");
|
||||
|
||||
// JQuery required for bootstrap toggle events
|
||||
$(genImgToggle).change(function() {
|
||||
screenshotImagePicker.classList.toggle("disabled", !genImgToggle.checked);
|
||||
updateShownImages();
|
||||
});
|
||||
|
||||
$(genImgToggle).bootstrapToggle();
|
||||
// TODO: Settings
|
||||
|
||||
async function showScreenshotWizard() {
|
||||
let imageData = await (await fetch("/image_db.json")).json();
|
||||
@@ -6970,7 +6964,6 @@ $el(".gametext").addEventListener("keydown", function(event) {
|
||||
|
||||
function updateShownImages() {
|
||||
screenshotImageContainer.innerHTML = "";
|
||||
if (!genImgToggle.checked) return;
|
||||
|
||||
for (const imgCont of screenshotImagePicker.children) {
|
||||
const checked = imgCont.querySelector("input").checked;
|
||||
|
@@ -386,13 +386,7 @@
|
||||
<div class="option">Boring Colors <input type="checkbox" data-size="mini" data-onstyle="success" data-toggle="toggle"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="distribution-bar">
|
||||
<div class="header">Generated Images</div>
|
||||
<div>
|
||||
Enabled
|
||||
<input id="sw-gen-img" type="checkbox" data-size="mini" data-onstyle="success" data-toggle="toggle">
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">Generated Images</div>
|
||||
<div id="screenshot-image-picker" class="noselect"></div>
|
||||
|
||||
<div id="sw-download">Download Screenshot</div>
|
||||
|
Reference in New Issue
Block a user