diff --git a/lib/consts.dart b/lib/consts.dart index 88084406..c5a829d0 100644 --- a/lib/consts.dart +++ b/lib/consts.dart @@ -448,7 +448,7 @@ const kLabelURLParams = "Params"; const kLabelHeaders = "Headers"; const kLabelBody = "Body"; const kLabelScripts = "Scripts"; -const kLabelAuth = "Authorization"; +const kLabelAuth = "Auth"; const kLabelQuery = "Query"; const kNameCheckbox = "Checkbox"; const kNameURLParam = "URL Parameter"; diff --git a/lib/screens/home_page/editor_pane/details_card/request_pane/request_pane_rest.dart b/lib/screens/home_page/editor_pane/details_card/request_pane/request_pane_rest.dart index 343850b2..22d9275f 100644 --- a/lib/screens/home_page/editor_pane/details_card/request_pane/request_pane_rest.dart +++ b/lib/screens/home_page/editor_pane/details_card/request_pane/request_pane_rest.dart @@ -47,18 +47,23 @@ class EditRestRequestPane extends ConsumerWidget { .read(collectionStateNotifierProvider.notifier) .update(requestTabIndex: index); }, - showIndicators: [paramLength > 0, headerLength > 0, hasBody, hasAuth], + showIndicators: [ + paramLength > 0, + hasAuth, + headerLength > 0, + hasBody, + ], tabLabels: const [ kLabelURLParams, + kLabelAuth, kLabelHeaders, kLabelBody, - kLabelAuth, ], children: const [ EditRequestURLParams(), + EditAuthType(), EditRequestHeaders(), EditRequestBody(), - EditAuthType(), ], ); }