mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 10:49:49 +08:00
feat: remove unused openapi action button
This commit is contained in:
@@ -34,7 +34,10 @@ class DashbotActionWidgetFactory {
|
||||
case ChatActionType.applyCurl:
|
||||
return DashbotApplyCurlButton(action: action);
|
||||
case ChatActionType.applyOpenApi:
|
||||
return DashbotApplyOpenApiButton(action: action);
|
||||
if (action.action == 'import_now_openapi') {
|
||||
return DashbotImportNowButton(action: action);
|
||||
}
|
||||
return null;
|
||||
case ChatActionType.downloadDoc:
|
||||
return DashbotDownloadDocButton(action: action);
|
||||
case ChatActionType.noAction:
|
||||
@@ -70,9 +73,6 @@ class DashbotActionWidgetFactory {
|
||||
if (action.action == 'apply_curl') {
|
||||
return DashbotApplyCurlButton(action: action);
|
||||
}
|
||||
if (action.action == 'apply_openapi') {
|
||||
return DashbotApplyOpenApiButton(action: action);
|
||||
}
|
||||
if (action.action.contains('update') ||
|
||||
action.action.contains('add') ||
|
||||
action.action.contains('delete')) {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
export 'dashbot_add_test_button.dart';
|
||||
export 'dashbot_apply_curl_button.dart';
|
||||
export 'dashbot_apply_openapi_button.dart';
|
||||
export 'dashbot_auto_fix_button.dart';
|
||||
export 'dashbot_download_doc_button.dart';
|
||||
export 'dashbot_generate_codeblock.dart';
|
||||
|
||||
Reference in New Issue
Block a user