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": {
|
||||
"dataType": "AstraDBSearch",
|
||||
"id": "AstraDBSearch-41nRz",
|
||||
"name": "base_retriever",
|
||||
"name": "search_results",
|
||||
"output_types": []
|
||||
},
|
||||
"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œ}",
|
||||
"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": {
|
||||
"stroke": "#555"
|
||||
},
|
||||
|
|
@ -1952,10 +1952,7 @@
|
|||
"display_name": "Search Results",
|
||||
"method": "search_documents",
|
||||
"name": "search_results",
|
||||
"selected": "Data",
|
||||
"types": [
|
||||
"Data"
|
||||
],
|
||||
"types": [],
|
||||
"value": "__UNDEFINED__"
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -284,16 +284,20 @@ export default function Header(): JSX.Element {
|
|||
/>
|
||||
Discussions
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem
|
||||
className="cursor-pointer gap-2"
|
||||
onClick={() => {
|
||||
logout();
|
||||
}}
|
||||
>
|
||||
<ForwardedIconComponent name="LogOut" className="w-4" />
|
||||
Log Out
|
||||
</DropdownMenuItem>
|
||||
{!autoLogin && (
|
||||
<>
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem
|
||||
className="cursor-pointer gap-2"
|
||||
onClick={() => {
|
||||
logout();
|
||||
}}
|
||||
>
|
||||
<ForwardedIconComponent name="LogOut" className="w-4" />
|
||||
Log Out
|
||||
</DropdownMenuItem>
|
||||
</>
|
||||
)}
|
||||
</DropdownMenuContent>
|
||||
</DropdownMenu>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue