|
|
|
@ -19,7 +19,6 @@ import RenameModal from '@/app/components/base/chat/chat-with-history/sidebar/re
|
|
|
|
import DifyLogo from '@/app/components/base/logo/dify-logo'
|
|
|
|
import DifyLogo from '@/app/components/base/logo/dify-logo'
|
|
|
|
import type { ConversationItem } from '@/models/share'
|
|
|
|
import type { ConversationItem } from '@/models/share'
|
|
|
|
import cn from '@/utils/classnames'
|
|
|
|
import cn from '@/utils/classnames'
|
|
|
|
import { AccessMode } from '@/models/access-control'
|
|
|
|
|
|
|
|
import { useGlobalPublicStore } from '@/context/global-public-context'
|
|
|
|
import { useGlobalPublicStore } from '@/context/global-public-context'
|
|
|
|
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
type Props = {
|
|
|
|
@ -30,7 +29,6 @@ const Sidebar = ({ isPanel }: Props) => {
|
|
|
|
const { t } = useTranslation()
|
|
|
|
const { t } = useTranslation()
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
isInstalledApp,
|
|
|
|
isInstalledApp,
|
|
|
|
accessMode,
|
|
|
|
|
|
|
|
appData,
|
|
|
|
appData,
|
|
|
|
handleNewConversation,
|
|
|
|
handleNewConversation,
|
|
|
|
pinnedConversationList,
|
|
|
|
pinnedConversationList,
|
|
|
|
@ -140,7 +138,7 @@ const Sidebar = ({ isPanel }: Props) => {
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className='flex shrink-0 items-center justify-between p-3'>
|
|
|
|
<div className='flex shrink-0 items-center justify-between p-3'>
|
|
|
|
<MenuDropdown hideLogout={isInstalledApp || accessMode === AccessMode.PUBLIC} placement='top-start' data={appData?.site} />
|
|
|
|
<MenuDropdown hideLogout={isInstalledApp} placement='top-start' data={appData?.site} />
|
|
|
|
{/* powered by */}
|
|
|
|
{/* powered by */}
|
|
|
|
<div className='shrink-0'>
|
|
|
|
<div className='shrink-0'>
|
|
|
|
{!appData?.custom_config?.remove_webapp_brand && (
|
|
|
|
{!appData?.custom_config?.remove_webapp_brand && (
|
|
|
|
|