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
d54e9422
Unverified
Commit
d54e9422
authored
Jul 18, 2023
by
KVOJJJin
Committed by
GitHub
Jul 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feat: hide password setting and invitation link in cloud version (#581)
parent
28ba7214
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
+22
-10
index.tsx
.../components/header/account-setting/account-page/index.tsx
+8
-5
index.tsx
...ader/account-setting/members-page/invited-modal/index.tsx
+14
-5
No files found.
web/app/components/header/account-setting/account-page/index.tsx
View file @
d54e9422
...
...
@@ -13,6 +13,7 @@ import { useAppContext } from '@/context/app-context'
import
{
ToastContext
}
from
'@/app/components/base/toast'
import
AppIcon
from
'@/app/components/base/app-icon'
import
Avatar
from
'@/app/components/base/avatar'
import
{
IS_CE_EDITION
}
from
'@/config'
const
titleClassName
=
`
text-sm font-medium text-gray-900
...
...
@@ -136,11 +137,13 @@ export default function AccountPage() {
<
div
className=
{
titleClassName
}
>
{
t
(
'common.account.email'
)
}
</
div
>
<
div
className=
{
classNames
(
inputClassName
,
'cursor-pointer'
)
}
>
{
userProfile
.
email
}
</
div
>
</
div
>
{
IS_CE_EDITION
&&
(
<
div
className=
'mb-8'
>
<
div
className=
'mb-1 text-sm font-medium text-gray-900'
>
{
t
(
'common.account.password'
)
}
</
div
>
<
div
className=
'mb-2 text-xs text-gray-500'
>
{
t
(
'common.account.passwordTip'
)
}
</
div
>
<
Button
className=
'font-medium !text-gray-700 !px-3 !py-[7px] !text-[13px]'
onClick=
{
()
=>
setEditPasswordModalVisible
(
true
)
}
>
{
userProfile
.
is_password_set
?
t
(
'common.account.resetPassword'
)
:
t
(
'common.account.setPassword'
)
}
</
Button
>
</
div
>
)
}
{
!!
apps
.
length
&&
(
<>
<
div
className=
'mb-6 border-[0.5px] border-gray-100'
/>
...
...
web/app/components/header/account-setting/members-page/invited-modal/index.tsx
View file @
d54e9422
...
...
@@ -5,6 +5,8 @@ import InvitationLink from './invitation-link'
import
s
from
'./index.module.css'
import
Modal
from
'@/app/components/base/modal'
import
Button
from
'@/app/components/base/button'
import
{
IS_CE_EDITION
}
from
'@/config'
type
IInvitedModalProps
=
{
invitationLink
:
string
onCancel
:
()
=>
void
...
...
@@ -29,11 +31,18 @@ const InvitedModal = ({
<
XMarkIcon
className=
'w-4 h-4 cursor-pointer'
onClick=
{
onCancel
}
/>
</
div
>
<
div
className=
'mb-1 text-xl font-semibold text-gray-900'
>
{
t
(
'common.members.invitationSent'
)
}
</
div
>
{
!
IS_CE_EDITION
&&
(
<
div
className=
'mb-10 text-sm text-gray-500'
>
{
t
(
'common.members.invitationSentTip'
)
}
</
div
>
)
}
{
IS_CE_EDITION
&&
(
<>
<
div
className=
'mb-5 text-sm text-gray-500'
>
{
t
(
'common.members.invitationSentTip'
)
}
</
div
>
<
div
className=
'mb-9'
>
<
div
className=
'py-2 text-sm font-Medium text-gray-900'
>
{
t
(
'common.members.invitationLink'
)
}
</
div
>
<
InvitationLink
value=
{
invitationLink
}
/>
</
div
>
</>
)
}
<
div
className=
'flex justify-end'
>
<
Button
className=
'w-[96px] text-sm font-medium'
...
...
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