mirror of
https://github.com/foss42/apidash.git
synced 2025-12-03 03:17:00 +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 kLabelHeaders = "Headers";
|
||||||
const kLabelBody = "Body";
|
const kLabelBody = "Body";
|
||||||
const kLabelScripts = "Scripts";
|
const kLabelScripts = "Scripts";
|
||||||
const kLabelAuth = "Authorization";
|
const kLabelAuth = "Auth";
|
||||||
const kLabelQuery = "Query";
|
const kLabelQuery = "Query";
|
||||||
const kNameCheckbox = "Checkbox";
|
const kNameCheckbox = "Checkbox";
|
||||||
const kNameURLParam = "URL Parameter";
|
const kNameURLParam = "URL Parameter";
|
||||||
|
|||||||
@@ -47,18 +47,23 @@ class EditRestRequestPane extends ConsumerWidget {
|
|||||||
.read(collectionStateNotifierProvider.notifier)
|
.read(collectionStateNotifierProvider.notifier)
|
||||||
.update(requestTabIndex: index);
|
.update(requestTabIndex: index);
|
||||||
},
|
},
|
||||||
showIndicators: [paramLength > 0, headerLength > 0, hasBody, hasAuth],
|
showIndicators: [
|
||||||
|
paramLength > 0,
|
||||||
|
hasAuth,
|
||||||
|
headerLength > 0,
|
||||||
|
hasBody,
|
||||||
|
],
|
||||||
tabLabels: const [
|
tabLabels: const [
|
||||||
kLabelURLParams,
|
kLabelURLParams,
|
||||||
|
kLabelAuth,
|
||||||
kLabelHeaders,
|
kLabelHeaders,
|
||||||
kLabelBody,
|
kLabelBody,
|
||||||
kLabelAuth,
|
|
||||||
],
|
],
|
||||||
children: const [
|
children: const [
|
||||||
EditRequestURLParams(),
|
EditRequestURLParams(),
|
||||||
|
EditAuthType(),
|
||||||
EditRequestHeaders(),
|
EditRequestHeaders(),
|
||||||
EditRequestBody(),
|
EditRequestBody(),
|
||||||
EditAuthType(),
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user