fix: disable sending messages if both application and conversation are empty and add loading to all pages (#134)
* feat: add loading to all pages * fix: disable sending messages if both application and conversation are empty * feat: add chatSpin class to Spin of chat
This commit is contained in:
@@ -113,3 +113,12 @@ export const useFetchSystemModelSettingOnMount = (visible: boolean) => {
|
||||
|
||||
return { systemSetting, allOptions };
|
||||
};
|
||||
|
||||
export const useSelectModelProvidersLoading = () => {
|
||||
const loading = useOneNamespaceEffectsLoading('settingModel', [
|
||||
'my_llm',
|
||||
'factories_list',
|
||||
]);
|
||||
|
||||
return loading;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user