translations and lint fix

This commit is contained in:
Mary Hipp
2024-07-18 20:26:17 -04:00
committed by psychedelicious
parent 4a09cc57be
commit 9e3412d776
22 changed files with 293 additions and 251 deletions

View File

@ -41,9 +41,19 @@ const createSelector = (templates: Templates) =>
selectDynamicPromptsSlice,
selectControlLayersSlice,
activeTabNameSelector,
selectUpscalelice
selectUpscalelice,
],
(controlAdapters, generation, system, nodes, workflowSettings, dynamicPrompts, controlLayers, activeTabName, upscale) => {
(
controlAdapters,
generation,
system,
nodes,
workflowSettings,
dynamicPrompts,
controlLayers,
activeTabName,
upscale
) => {
const { model } = generation;
const { size } = controlLayers.present;
const { positivePrompt } = controlLayers.present;
@ -196,16 +206,16 @@ const createSelector = (templates: Templates) =>
reasons.push({ prefix, content });
}
});
} else if (activeTabName === "upscaling") {
} else if (activeTabName === 'upscaling') {
if (!upscale.upscaleInitialImage) {
reasons.push({ content: "No Initial image" })
reasons.push({ content: 'No Initial image' });
}
if (!upscale.upscaleModel) {
reasons.push({ content: "No upscale model selected" })
reasons.push({ content: 'No upscale model selected' });
}
if (!upscale.tileControlnetModel) {
reasons.push({ content: "No valid tile controlnet available" })
reasons.push({ content: 'No valid tile controlnet available' });
}
} else {
// Handling for all other tabs