forked from open-webui/open-webui
feat: allow enabling after url is provided
This commit is contained in:
parent
d863e7e60b
commit
797ed9ac7f
2 changed files with 13 additions and 4 deletions
|
@ -45,8 +45,13 @@
|
|||
};
|
||||
|
||||
const toggleImageGeneration = async () => {
|
||||
enableImageGeneration = await toggleImageGenerationEnabledStatus(localStorage.token);
|
||||
config.set(await getBackendConfig(localStorage.token));
|
||||
if (AUTOMATIC1111_BASE_URL) {
|
||||
enableImageGeneration = await toggleImageGenerationEnabledStatus(localStorage.token);
|
||||
config.set(await getBackendConfig(localStorage.token));
|
||||
} else {
|
||||
enableImageGeneration = false;
|
||||
toast.error('AUTOMATIC1111_BASE_URL not provided');
|
||||
}
|
||||
};
|
||||
|
||||
onMount(async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue