Refactor: remove log out if the user is using auto login
This commit is contained in:
parent
6266d2201c
commit
8bbb457096
2 changed files with 17 additions and 16 deletions
|
|
@ -272,7 +272,7 @@
|
||||||
"sourceHandle": {
|
"sourceHandle": {
|
||||||
"dataType": "AstraDBSearch",
|
"dataType": "AstraDBSearch",
|
||||||
"id": "AstraDBSearch-41nRz",
|
"id": "AstraDBSearch-41nRz",
|
||||||
"name": "base_retriever",
|
"name": "search_results",
|
||||||
"output_types": []
|
"output_types": []
|
||||||
},
|
},
|
||||||
"targetHandle": {
|
"targetHandle": {
|
||||||
|
|
@ -287,7 +287,7 @@
|
||||||
},
|
},
|
||||||
"id": "reactflow__edge-AstraDBSearch-41nRz{œbaseClassesœ:[œRecordœ],œdataTypeœ:œAstraDBSearchœ,œidœ:œAstraDBSearch-41nRzœ}-TextOutput-BDknO{œfieldNameœ:œinput_valueœ,œidœ:œTextOutput-BDknOœ,œinputTypesœ:[œRecordœ,œTextœ],œtypeœ:œstrœ}",
|
"id": "reactflow__edge-AstraDBSearch-41nRz{œbaseClassesœ:[œRecordœ],œdataTypeœ:œAstraDBSearchœ,œidœ:œAstraDBSearch-41nRzœ}-TextOutput-BDknO{œfieldNameœ:œinput_valueœ,œidœ:œTextOutput-BDknOœ,œinputTypesœ:[œRecordœ,œTextœ],œtypeœ:œstrœ}",
|
||||||
"source": "AstraDBSearch-41nRz",
|
"source": "AstraDBSearch-41nRz",
|
||||||
"sourceHandle": "{œdataTypeœ: œAstraDBSearchœ, œidœ: œAstraDBSearch-41nRzœ, œoutput_typesœ: [], œnameœ: œbase_retrieverœ}",
|
"sourceHandle": "{œdataTypeœ: œAstraDBSearchœ, œidœ: œAstraDBSearch-41nRzœ, œoutput_typesœ: [], œnameœ: œsearch_resultsœ}",
|
||||||
"style": {
|
"style": {
|
||||||
"stroke": "#555"
|
"stroke": "#555"
|
||||||
},
|
},
|
||||||
|
|
@ -1952,10 +1952,7 @@
|
||||||
"display_name": "Search Results",
|
"display_name": "Search Results",
|
||||||
"method": "search_documents",
|
"method": "search_documents",
|
||||||
"name": "search_results",
|
"name": "search_results",
|
||||||
"selected": "Data",
|
"types": [],
|
||||||
"types": [
|
|
||||||
"Data"
|
|
||||||
],
|
|
||||||
"value": "__UNDEFINED__"
|
"value": "__UNDEFINED__"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -284,16 +284,20 @@ export default function Header(): JSX.Element {
|
||||||
/>
|
/>
|
||||||
Discussions
|
Discussions
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuSeparator />
|
{!autoLogin && (
|
||||||
<DropdownMenuItem
|
<>
|
||||||
className="cursor-pointer gap-2"
|
<DropdownMenuSeparator />
|
||||||
onClick={() => {
|
<DropdownMenuItem
|
||||||
logout();
|
className="cursor-pointer gap-2"
|
||||||
}}
|
onClick={() => {
|
||||||
>
|
logout();
|
||||||
<ForwardedIconComponent name="LogOut" className="w-4" />
|
}}
|
||||||
Log Out
|
>
|
||||||
</DropdownMenuItem>
|
<ForwardedIconComponent name="LogOut" className="w-4" />
|
||||||
|
Log Out
|
||||||
|
</DropdownMenuItem>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
</>
|
</>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue