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
58d769b3
Commit
58d769b3
authored
Jun 15, 2023
by
StyleZhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: data-source-notion
parent
3e6320fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
base.tsx
web/app/components/base/notion-page-selector/base.tsx
+2
-1
index.tsx
...unt-setting/data-source-page/data-source-notion/index.tsx
+4
-4
No files found.
web/app/components/base/notion-page-selector/base.tsx
View file @
58d769b3
...
...
@@ -28,7 +28,7 @@ const NotionPageSelector = ({
onPreview
,
datasetId
=
''
,
}:
NotionPageSelectorProps
)
=>
{
const
{
data
}
=
useSWR
({
url
:
'/notion/pre-import/pages'
,
datasetId
},
preImportNotionPages
)
const
{
data
,
mutate
}
=
useSWR
({
url
:
'/notion/pre-import/pages'
,
datasetId
},
preImportNotionPages
)
const
[
prevData
,
setPrevData
]
=
useState
(
data
)
const
[
searchValue
,
setSearchValue
]
=
useState
(
''
)
const
[
showDataSourceSetting
,
setShowDataSourceSetting
]
=
useState
(
false
)
...
...
@@ -119,6 +119,7 @@ const NotionPageSelector = ({
showDataSourceSetting
&&
(
<
AccountSetting
activeTab=
'data-source'
onCancel=
{
()
=>
{
setShowDataSourceSetting
(
false
)
mutate
()
}
}
/>
)
}
...
...
web/app/components/header/account-setting/data-source-page/data-source-notion/index.tsx
View file @
58d769b3
...
...
@@ -74,13 +74,13 @@ const DataSourceNotion = ({
src=
{
workspace
.
source_info
.
workspace_icon
}
name=
{
workspace
.
source_info
.
workspace_name
}
/>
<
div
className=
'grow py-[7px] leading-[18px] text-[13px] font-medium text-gray-700
'
>
{
workspace
.
source_info
.
workspace_name
}
</
div
>
<
div
className=
'grow py-[7px] leading-[18px] text-[13px] font-medium text-gray-700
truncate'
title=
{
workspace
.
source_info
.
workspace_name
}
>
{
workspace
.
source_info
.
workspace_name
}
</
div
>
{
workspace
.
is_bound
?
<
Indicator
className=
'mr-[6px]'
/>
:
<
Indicator
className=
'mr-[6px]'
color=
'yellow'
/>
?
<
Indicator
className=
'
shrink-0
mr-[6px]'
/>
:
<
Indicator
className=
'
shrink-0
mr-[6px]'
color=
'yellow'
/>
}
<
div
className=
'mr-3 text-xs font-medium'
>
<
div
className=
'
shrink-0
mr-3 text-xs font-medium'
>
{
workspace
.
is_bound
?
t
(
'common.dataSource.notion.connected'
)
...
...
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