Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
01e912e5
Unverified
Commit
01e912e5
authored
Aug 16, 2023
by
Joel
Committed by
GitHub
Aug 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: promptEng menu in wrong place (#864)
parent
f95f6db0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
layout.tsx
...p/(commonLayout)/app/(appDetailLayout)/[appId]/layout.tsx
+2
-3
No files found.
web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout.tsx
View file @
01e912e5
...
...
@@ -39,11 +39,10 @@ const AppDetailLayout: FC<IAppDetailLayoutProps> = (props) => {
const
navigation
=
useMemo
(()
=>
{
const
navs
=
[
{
name
:
t
(
'common.appMenus.overview'
),
href
:
`/app/
${
appId
}
/overview`
,
icon
:
ChartBarSquareIcon
,
selectedIcon
:
ChartBarSquareSolidIcon
},
isCurrentWorkspaceManager
?
{
name
:
t
(
'common.appMenus.promptEng'
),
href
:
`/app/
${
appId
}
/configuration`
,
icon
:
Cog8ToothIcon
,
selectedIcon
:
Cog8ToothSolidIcon
}
:
false
,
{
name
:
t
(
'common.appMenus.apiAccess'
),
href
:
`/app/
${
appId
}
/develop`
,
icon
:
CommandLineIcon
,
selectedIcon
:
CommandLineSolidIcon
},
{
name
:
t
(
'common.appMenus.logAndAnn'
),
href
:
`/app/
${
appId
}
/logs`
,
icon
:
DocumentTextIcon
,
selectedIcon
:
DocumentTextSolidIcon
},
]
if
(
isCurrentWorkspaceManager
)
navs
.
push
({
name
:
t
(
'common.appMenus.promptEng'
),
href
:
`/app/
${
appId
}
/configuration`
,
icon
:
Cog8ToothIcon
,
selectedIcon
:
Cog8ToothSolidIcon
})
].
filter
(
nav
=>
!!
nav
)
return
navs
},
[
appId
,
isCurrentWorkspaceManager
,
t
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment