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
13b64bc5
Unverified
Commit
13b64bc5
authored
Nov 06, 2023
by
zxhlyh
Committed by
GitHub
Nov 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: refresh api-based-extension (#1464)
parent
279f099b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
empty.tsx
...header/account-setting/api-based-extension-page/empty.tsx
+1
-1
selector.tsx
...der/account-setting/api-based-extension-page/selector.tsx
+2
-2
No files found.
web/app/components/header/account-setting/api-based-extension-page/empty.tsx
View file @
13b64bc5
...
@@ -10,7 +10,7 @@ const Empty = () => {
...
@@ -10,7 +10,7 @@ const Empty = () => {
<
div
className=
'flex items-center justify-center mb-3 w-12 h-12 rounded-[10px] border border-[#EAECF5]'
>
<
div
className=
'flex items-center justify-center mb-3 w-12 h-12 rounded-[10px] border border-[#EAECF5]'
>
<
Webhooks
className=
'w-6 h-6 text-gray-500'
/>
<
Webhooks
className=
'w-6 h-6 text-gray-500'
/>
</
div
>
</
div
>
<
div
className=
'mb-2 text-sm text-gray-600'
>
{
t
(
'commo
s
n.apiBasedExtension.title'
)
}
</
div
>
<
div
className=
'mb-2 text-sm text-gray-600'
>
{
t
(
'common.apiBasedExtension.title'
)
}
</
div
>
<
a
<
a
className=
'flex items-center mb-2 h-[18px] text-xs text-primary-600'
className=
'flex items-center mb-2 h-[18px] text-xs text-primary-600'
href=
{
t
(
'common.apiBasedExtension.linkUrl'
)
||
'/'
}
href=
{
t
(
'common.apiBasedExtension.linkUrl'
)
||
'/'
}
...
...
web/app/components/header/account-setting/api-based-extension-page/selector.tsx
View file @
13b64bc5
...
@@ -30,7 +30,7 @@ const ApiBasedExtensionSelector: FC<ApiBasedExtensionSelectorProps> = ({
...
@@ -30,7 +30,7 @@ const ApiBasedExtensionSelector: FC<ApiBasedExtensionSelectorProps> = ({
setShowAccountSettingModal
,
setShowAccountSettingModal
,
setShowApiBasedExtensionModal
,
setShowApiBasedExtensionModal
,
}
=
useModalContext
()
}
=
useModalContext
()
const
{
data
}
=
useSWR
(
const
{
data
,
mutate
}
=
useSWR
(
'/api-based-extension'
,
'/api-based-extension'
,
fetchApiBasedExtensionList
,
fetchApiBasedExtensionList
,
)
)
...
@@ -104,7 +104,7 @@ const ApiBasedExtensionSelector: FC<ApiBasedExtensionSelectorProps> = ({
...
@@ -104,7 +104,7 @@ const ApiBasedExtensionSelector: FC<ApiBasedExtensionSelectorProps> = ({
<
div
className=
'p-1'
>
<
div
className=
'p-1'
>
<
div
<
div
className=
'flex items-center px-3 h-8 text-sm text-primary-600 cursor-pointer'
className=
'flex items-center px-3 h-8 text-sm text-primary-600 cursor-pointer'
onClick=
{
()
=>
setShowApiBasedExtensionModal
({
payload
:
{}
})
}
onClick=
{
()
=>
setShowApiBasedExtensionModal
({
payload
:
{}
,
onSaveCallback
:
()
=>
mutate
()
})
}
>
>
<
Plus
className=
'mr-2 w-4 h-4'
/>
<
Plus
className=
'mr-2 w-4 h-4'
/>
{
t
(
'common.operation.add'
)
}
{
t
(
'common.operation.add'
)
}
...
...
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