feat(ui): updated upscale tab warnings

This commit is contained in:
psychedelicious
2024-07-23 14:22:35 +10:00
parent 4352341a00
commit 8f934747f3
3 changed files with 39 additions and 31 deletions

View File

@ -208,14 +208,13 @@ const createSelector = (templates: Templates) =>
});
} else if (activeTabName === 'upscaling') {
if (!upscale.upscaleInitialImage) {
reasons.push({ content: 'No Initial image' });
reasons.push({ content: i18n.t('upscaling.missingUpscaleInitialImage') });
}
if (!upscale.upscaleModel) {
reasons.push({ content: 'No upscale model selected' });
reasons.push({ content: i18n.t('upscaling.missingUpscaleModel') });
}
if (!upscale.tileControlnetModel) {
reasons.push({ content: 'No valid tile controlnet available' });
reasons.push({ content: i18n.t('upscaling.missingTileControlNetModel') });
}
} else {
// Handling for all other tabs