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
88145efa
Unverified
Commit
88145efa
authored
Mar 09, 2024
by
Vikey Chen
Committed by
GitHub
Mar 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: app name can be empty in settings modal (#2761)
parent
bdc13f92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
index.tsx
web/app/components/app/overview/settings/index.tsx
+6
-0
No files found.
web/app/components/app/overview/settings/index.tsx
View file @
88145efa
...
...
@@ -12,6 +12,7 @@ import { SimpleSelect } from '@/app/components/base/select'
import
type
{
AppDetailResponse
}
from
'@/models/app'
import
type
{
Language
}
from
'@/types/app'
import
EmojiPicker
from
'@/app/components/base/emoji-picker'
import
{
useToastContext
}
from
'@/app/components/base/toast'
import
{
languages
}
from
'@/i18n/language'
...
...
@@ -42,6 +43,7 @@ const SettingsModal: FC<ISettingsModalProps> = ({
onClose
,
onSave
,
})
=>
{
const
{
notify
}
=
useToastContext
()
const
[
isShowMore
,
setIsShowMore
]
=
useState
(
false
)
const
{
icon
,
icon_background
}
=
appInfo
const
{
title
,
description
,
copyright
,
privacy_policy
,
default_language
}
=
appInfo
.
site
...
...
@@ -67,6 +69,10 @@ const SettingsModal: FC<ISettingsModalProps> = ({
}
const
onClickSave
=
async
()
=>
{
if
(
!
inputInfo
.
title
)
{
notify
({
type
:
'error'
,
message
:
t
(
'app.newApp.nameNotEmpty'
)
})
return
}
setSaveLoading
(
true
)
const
params
=
{
title
:
inputInfo
.
title
,
...
...
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