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
fb55b3a8
Unverified
Commit
fb55b3a8
authored
Dec 19, 2023
by
crazywoola
Committed by
GitHub
Dec 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: delete member dropdown not shown (#1794)
parent
df150998
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
136 deletions
+100
-136
index.tsx
.../components/header/account-setting/members-page/index.tsx
+4
-4
yarn.lock
web/yarn.lock
+96
-132
No files found.
web/app/components/header/account-setting/members-page/index.tsx
View file @
fb55b3a8
...
@@ -44,7 +44,7 @@ const MembersPage = () => {
...
@@ -44,7 +44,7 @@ const MembersPage = () => {
return
(
return
(
<>
<>
<
div
>
<
div
className=
'flex flex-col'
>
<
div
className=
'flex items-center mb-4 p-3 bg-gray-50 rounded-2xl'
>
<
div
className=
'flex items-center mb-4 p-3 bg-gray-50 rounded-2xl'
>
<
LogoEmbededChatHeader
className=
'!w-10 !h-10'
/>
<
LogoEmbededChatHeader
className=
'!w-10 !h-10'
/>
<
div
className=
'grow mx-2'
>
<
div
className=
'grow mx-2'
>
...
@@ -82,13 +82,13 @@ const MembersPage = () => {
...
@@ -82,13 +82,13 @@ const MembersPage = () => {
{
t
(
'common.members.invite'
)
}
{
t
(
'common.members.invite'
)
}
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
'overflow-
x-auto
'
>
<
div
className=
'overflow-
visible lg:overflow-visible
'
>
<
div
className=
'flex items-center py-[7px] border-b border-gray-200 min-w-[480px]'
>
<
div
className=
'flex items-center py-[7px] border-b border-gray-200 min-w-[480px]'
>
<
div
className=
'grow px-3 text-xs font-medium text-gray-500'
>
{
t
(
'common.members.name'
)
}
</
div
>
<
div
className=
'grow px-3 text-xs font-medium text-gray-500'
>
{
t
(
'common.members.name'
)
}
</
div
>
<
div
className=
'shrink-0 w-[104px] text-xs font-medium text-gray-500'
>
{
t
(
'common.members.lastActive'
)
}
</
div
>
<
div
className=
'shrink-0 w-[104px] text-xs font-medium text-gray-500'
>
{
t
(
'common.members.lastActive'
)
}
</
div
>
<
div
className=
'shrink-0 w-[96px] px-3 text-xs font-medium text-gray-500'
>
{
t
(
'common.members.role'
)
}
</
div
>
<
div
className=
'shrink-0 w-[96px] px-3 text-xs font-medium text-gray-500'
>
{
t
(
'common.members.role'
)
}
</
div
>
</
div
>
</
div
>
<
div
className=
'min-w-[480px]'
>
<
div
className=
'min-w-[480px]
relative
'
>
{
{
accounts
.
map
(
account
=>
(
accounts
.
map
(
account
=>
(
<
div
key=
{
account
.
id
}
className=
'flex border-b border-gray-100'
>
<
div
key=
{
account
.
id
}
className=
'flex border-b border-gray-100'
>
...
@@ -104,7 +104,7 @@ const MembersPage = () => {
...
@@ -104,7 +104,7 @@ const MembersPage = () => {
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
'shrink-0 flex items-center w-[104px] py-2 text-[13px] text-gray-700'
>
{
dayjs
(
Number
((
account
.
last_login_at
||
account
.
created_at
))
*
1000
).
locale
(
locale
===
'zh-Hans'
?
'zh-cn'
:
'en'
).
fromNow
()
}
</
div
>
<
div
className=
'shrink-0 flex items-center w-[104px] py-2 text-[13px] text-gray-700'
>
{
dayjs
(
Number
((
account
.
last_login_at
||
account
.
created_at
))
*
1000
).
locale
(
locale
===
'zh-Hans'
?
'zh-cn'
:
'en'
).
fromNow
()
}
</
div
>
<
div
className=
'shrink-0 w-[96px] flex items-center'
>
<
div
className=
'shrink-0 w-[96px] flex items-center
relative z-10
'
>
{
{
(
owner
&&
account
.
role
!==
'owner'
)
(
owner
&&
account
.
role
!==
'owner'
)
?
<
Operation
member=
{
account
}
onOperate=
{
mutate
}
/>
?
<
Operation
member=
{
account
}
onOperate=
{
mutate
}
/>
...
...
web/yarn.lock
View file @
fb55b3a8
This diff is collapsed.
Click to expand it.
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