feat(#BRU-18): updated inherit option order in the auth mode select dropdown

This commit is contained in:
lohxt1 2024-02-26 19:31:18 +05:30
parent 7a635810b1
commit e66e26d115
2 changed files with 15 additions and 15 deletions

View File

@ -38,16 +38,7 @@ const AuthMode = ({ item, collection }) => {
<div <div
className="dropdown-item" className="dropdown-item"
onClick={() => { onClick={() => {
dropdownTippyRef.current.hide(); dropdownTippyRef?.current?.hide();
onModeChange('inherit');
}}
>
Inherit
</div>
<div
className="dropdown-item"
onClick={() => {
dropdownTippyRef.current.hide();
onModeChange('awsv4'); onModeChange('awsv4');
}} }}
> >
@ -56,7 +47,7 @@ const AuthMode = ({ item, collection }) => {
<div <div
className="dropdown-item" className="dropdown-item"
onClick={() => { onClick={() => {
dropdownTippyRef.current.hide(); dropdownTippyRef?.current?.hide();
onModeChange('basic'); onModeChange('basic');
}} }}
> >
@ -65,7 +56,7 @@ const AuthMode = ({ item, collection }) => {
<div <div
className="dropdown-item" className="dropdown-item"
onClick={() => { onClick={() => {
dropdownTippyRef.current.hide(); dropdownTippyRef?.current?.hide();
onModeChange('bearer'); onModeChange('bearer');
}} }}
> >
@ -74,7 +65,7 @@ const AuthMode = ({ item, collection }) => {
<div <div
className="dropdown-item" className="dropdown-item"
onClick={() => { onClick={() => {
dropdownTippyRef.current.hide(); dropdownTippyRef?.current?.hide();
onModeChange('digest'); onModeChange('digest');
}} }}
> >
@ -83,7 +74,16 @@ const AuthMode = ({ item, collection }) => {
<div <div
className="dropdown-item" className="dropdown-item"
onClick={() => { onClick={() => {
dropdownTippyRef.current.hide(); dropdownTippyRef?.current?.hide();
onModeChange('inherit');
}}
>
Inherit
</div>
<div
className="dropdown-item"
onClick={() => {
dropdownTippyRef?.current?.hide();
onModeChange('none'); onModeChange('none');
}} }}
> >

View File

@ -1,5 +1,5 @@
vars { vars {
host: http://localhost:80 host: http://localhost:8080
bearer_auth_token: your_secret_token bearer_auth_token: your_secret_token
basic_auth_password: della basic_auth_password: della
env.var1: envVar1 env.var1: envVar1