mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
fix networks display
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -6,11 +6,11 @@ let totalCards = -1;
|
||||
|
||||
const getENActiveTab = () => {
|
||||
let tabName = '';
|
||||
if (gradioApp().getElementById('txt2img_prompt').checkVisibility()) return 'txt2img';
|
||||
if (gradioApp().getElementById('img2img_prompt').checkVisibility()) return 'img2img';
|
||||
if (gradioApp().getElementById('control_prompt').checkVisibility()) return 'control';
|
||||
if (gradioApp().getElementById('video_prompt').checkVisibility()) return 'video';
|
||||
if (gradioApp().getElementById('framepack_prompt_row').checkVisibility()) return 'framepack';
|
||||
if (gradioApp().getElementById('txt2img_prompt')?.checkVisibility()) return 'txt2img';
|
||||
if (gradioApp().getElementById('img2img_prompt')?.checkVisibility()) return 'img2img';
|
||||
if (gradioApp().getElementById('control_prompt')?.checkVisibility()) return 'control';
|
||||
if (gradioApp().getElementById('video_prompt')?.checkVisibility()) return 'video';
|
||||
if (gradioApp().getElementById('framepack_prompt_row')?.checkVisibility()) return 'framepack';
|
||||
// legacy method
|
||||
if (gradioApp().getElementById('tab_txt2img').style.display === 'block') tabName = 'txt2img';
|
||||
else if (gradioApp().getElementById('tab_img2img').style.display === 'block') tabName = 'img2img';
|
||||
|
||||
Reference in New Issue
Block a user