mirror of https://github.com/langgenius/dify.git
This commit is contained in:
parent
d37490adc3
commit
adfaee7ab5
|
@ -439,23 +439,25 @@ const SettingsModal: FC<ISettingsModalProps> = ({
|
||||||
<Button className='mr-2' onClick={onHide}>{t('common.operation.cancel')}</Button>
|
<Button className='mr-2' onClick={onHide}>{t('common.operation.cancel')}</Button>
|
||||||
<Button variant='primary' onClick={onClickSave} loading={saveLoading}>{t('common.operation.save')}</Button>
|
<Button variant='primary' onClick={onClickSave} loading={saveLoading}>{t('common.operation.save')}</Button>
|
||||||
</div>
|
</div>
|
||||||
</Modal >
|
|
||||||
{showAppIconPicker && (
|
|
||||||
<AppIconPicker
|
|
||||||
onSelect={(payload) => {
|
|
||||||
setAppIcon(payload)
|
|
||||||
setShowAppIconPicker(false)
|
|
||||||
}}
|
|
||||||
onClose={() => {
|
|
||||||
setAppIcon(icon_type === 'image'
|
|
||||||
? { type: 'image', url: icon_url!, fileId: icon }
|
|
||||||
: { type: 'emoji', icon, background: icon_background! })
|
|
||||||
setShowAppIconPicker(false)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</>
|
|
||||||
|
|
||||||
|
{showAppIconPicker && (
|
||||||
|
<div onClick={e => e.stopPropagation()}>
|
||||||
|
<AppIconPicker
|
||||||
|
onSelect={(payload) => {
|
||||||
|
setAppIcon(payload)
|
||||||
|
setShowAppIconPicker(false)
|
||||||
|
}}
|
||||||
|
onClose={() => {
|
||||||
|
setAppIcon(icon_type === 'image'
|
||||||
|
? { type: 'image', url: icon_url!, fileId: icon }
|
||||||
|
: { type: 'emoji', icon, background: icon_background! })
|
||||||
|
setShowAppIconPicker(false)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</Modal>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
export default React.memo(SettingsModal)
|
export default React.memo(SettingsModal)
|
||||||
|
|
Loading…
Reference in New Issue