choizhang commited on
Commit
d919945
·
1 Parent(s): 59095e5

refactor(SiteHeader): Hide logout button in guest mode

Browse files
lightrag/api/webui/assets/{index-DPOdOU_f.js → index-BRzImUsU.js} RENAMED
Binary files a/lightrag/api/webui/assets/index-DPOdOU_f.js and b/lightrag/api/webui/assets/index-BRzImUsU.js differ
 
lightrag/api/webui/assets/index-BcBS1RaQ.css ADDED
Binary file (53 kB). View file
 
lightrag/api/webui/assets/index-Cq65VeVX.css DELETED
Binary file (53.1 kB)
 
lightrag/api/webui/index.html CHANGED
Binary files a/lightrag/api/webui/index.html and b/lightrag/api/webui/index.html differ
 
lightrag_webui/src/features/SiteHeader.tsx CHANGED
@@ -95,9 +95,11 @@ export default function SiteHeader() {
95
  </a>
96
  </Button>
97
  <AppSettings />
98
- <Button variant="ghost" size="icon" side="bottom" tooltip={t('header.logout')} onClick={handleLogout}>
99
- <LogOutIcon className="size-4" aria-hidden="true" />
100
- </Button>
 
 
101
  </div>
102
  </nav>
103
  </header>
 
95
  </a>
96
  </Button>
97
  <AppSettings />
98
+ {!isGuestMode && (
99
+ <Button variant="ghost" size="icon" side="bottom" tooltip={t('header.logout')} onClick={handleLogout}>
100
+ <LogOutIcon className="size-4" aria-hidden="true" />
101
+ </Button>
102
+ )}
103
  </div>
104
  </nav>
105
  </header>