mirror of
https://github.com/foss42/apidash.git
synced 2025-07-04 07:18:11 +08:00
feat: add scripts tab for gql requests in history request pane
This commit is contained in:
@ -89,13 +89,11 @@ class HistoryRequestPane extends ConsumerWidget {
|
|||||||
!codePaneVisible;
|
!codePaneVisible;
|
||||||
},
|
},
|
||||||
showViewCodeButton: !isCompact,
|
showViewCodeButton: !isCompact,
|
||||||
showIndicators: [
|
showIndicators: [headerLength > 0, hasQuery, scriptsLength > 0],
|
||||||
headerLength > 0,
|
|
||||||
hasQuery,
|
|
||||||
],
|
|
||||||
tabLabels: const [
|
tabLabels: const [
|
||||||
kLabelHeaders,
|
kLabelHeaders,
|
||||||
kLabelQuery,
|
kLabelQuery,
|
||||||
|
kLabelScripts,
|
||||||
],
|
],
|
||||||
children: [
|
children: [
|
||||||
RequestDataTable(
|
RequestDataTable(
|
||||||
@ -103,6 +101,7 @@ class HistoryRequestPane extends ConsumerWidget {
|
|||||||
keyName: kNameHeader,
|
keyName: kNameHeader,
|
||||||
),
|
),
|
||||||
const HisRequestBody(),
|
const HisRequestBody(),
|
||||||
|
const HistoryScriptsTab(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
_ => kSizedBoxEmpty,
|
_ => kSizedBoxEmpty,
|
||||||
|
Reference in New Issue
Block a user