setTab('proxy')}>
Proxy
+ {Object.keys(proxyConfig).length > 0 && }
setTab('clientCert')}>
Client Certificates
+ {clientCertConfig.length > 0 && }
setTab('info')}>
Info
diff --git a/packages/bruno-app/src/components/FolderSettings/index.js b/packages/bruno-app/src/components/FolderSettings/index.js
index 966c36b36..dba5f170d 100644
--- a/packages/bruno-app/src/components/FolderSettings/index.js
+++ b/packages/bruno-app/src/components/FolderSettings/index.js
@@ -7,6 +7,15 @@ import Script from './Script';
import Tests from './Tests';
import StyledWrapper from './StyledWrapper';
import Vars from './Vars';
+import DotIcon from 'components/Icons/Dot';
+
+const ContentIndicator = () => {
+ return (
+
+
+
+ );
+};
const FolderSettings = ({ collection, folder }) => {
const dispatch = useDispatch();
@@ -16,6 +25,17 @@ const FolderSettings = ({ collection, folder }) => {
tab = folderLevelSettingsSelectedTab[folder?.uid];
}
+ const folderRoot = collection?.items.find((item) => item.uid === folder?.uid)?.root;
+ const hasScripts = folderRoot?.request?.script.res || folderRoot?.request?.script.req;
+ const hasTests = folderRoot?.request?.tests;
+
+ const headers = folderRoot?.request?.headers || [];
+ const activeHeadersCount = headers.filter((header) => header.enabled).length;
+
+ const requestVars = folderRoot?.request?.vars?.req || [];
+ const responseVars = folderRoot?.request?.vars?.res || [];
+ const activeVarsCount = requestVars.filter((v) => v.enabled).length + responseVars.filter((v) => v.enabled).length;
+
const setTab = (tab) => {
dispatch(
updatedFolderSettingsSelectedTab({
@@ -55,15 +75,19 @@ const FolderSettings = ({ collection, folder }) => {
setTab('headers')}>
Headers
+ {activeHeadersCount > 0 && {activeHeadersCount}}
setTab('script')}>
Script
+ {hasScripts && }
setTab('test')}>
Test
+ {hasTests && }
setTab('vars')}>
Vars
+ {activeVarsCount > 0 && {activeVarsCount}}
diff --git a/packages/bruno-app/src/components/RequestPane/HttpRequestPane/index.js b/packages/bruno-app/src/components/RequestPane/HttpRequestPane/index.js
index d2032f7f4..09a665e9f 100644
--- a/packages/bruno-app/src/components/RequestPane/HttpRequestPane/index.js
+++ b/packages/bruno-app/src/components/RequestPane/HttpRequestPane/index.js
@@ -17,9 +17,11 @@ import { find, get } from 'lodash';
import Documentation from 'components/Documentation/index';
const ContentIndicator = () => {
- return
-
-
+ return (
+
+
+
+ );
};
const HttpRequestPane = ({ item, collection, leftPaneWidth }) => {
@@ -100,6 +102,7 @@ const HttpRequestPane = ({ item, collection, leftPaneWidth }) => {
const docs = getPropertyFromDraftOrRequest('request.docs');
const requestVars = getPropertyFromDraftOrRequest('request.vars.req');
const responseVars = getPropertyFromDraftOrRequest('request.vars.res');
+ const auth = getPropertyFromDraftOrRequest('request.auth');
const activeParamsLength = params.filter((param) => param.enabled).length;
const activeHeadersLength = headers.filter((header) => header.enabled).length;
@@ -125,6 +128,7 @@ const HttpRequestPane = ({ item, collection, leftPaneWidth }) => {