mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
fix: update authorization label and reorder request pane
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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(),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user