Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: fix editable
Nathan723971e4236c
diff --git a/frontend/appflowy_flutter/lib/ai/service/ai_prompt_input_bloc.dart b/frontend/appflowy_flutter/lib/ai/service/ai_prompt_input_bloc.dartindex 7e05bffca9..16ca6bd869 100644--- a/frontend/appflowy_flutter/lib/ai/service/ai_prompt_input_bloc.dart+++ b/frontend/appflowy_flutter/lib/ai/service/ai_prompt_input_bloc.dart@@ -39,8 +39,8 @@ class AIPromptInputBloc extends Bloc<AIPromptInputEvent, AIPromptInputState> {(event, emit) {event.when(updateAIState: (localAIState) {- AiType aiType = localAIState.enabled ? AiType.local : AiType.cloud;- bool supportChatWithFile =+ final aiType = localAIState.enabled ? AiType.local : AiType.cloud;+ final supportChatWithFile =aiType.isLocal && localAIState.state == RunningStatePB.Running;// If local ai is enabled, user can only send messages when the AI is running@@ -48,11 +48,6 @@ class AIPromptInputBloc extends Bloc<AIPromptInputEvent, AIPromptInputState> {? localAIState.state == RunningStatePB.Running: true;- if (localAIState.hasLackOfResource()) {- aiType = AiType.cloud;- supportChatWithFile = false;- }-var hintText = aiType.isLocal? LocaleKeys.chat_inputLocalAIMessageHint.tr(): LocaleKeys.chat_inputMessageHint.tr();