display the module name next to the ctrlnet unit number

pull/321/head
Abdullah Alfaraj 2023-06-23 12:04:02 +03:00
parent 8ef37aea72
commit 4c4e6d00b7
1 changed files with 4 additions and 1 deletions

View File

@ -362,7 +362,10 @@ export default class ControlNetUnit extends React.Component<
].enabled ].enabled
} }
> >
ControlNet Unit {this.props.index} ControlNet Unit {this.props.index}{' '}
{storeData.module && storeData.module !== 'none'
? `(${storeData.module})`
: void 0}
</SpCheckBox> </SpCheckBox>
</div> </div>
<div style={{ display: storeData.enabled ? 'block' : 'none' }}> <div style={{ display: storeData.enabled ? 'block' : 'none' }}>