forked from appsmithorg/appsmith
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'appsmithorg:release' into release
- Loading branch information
Showing
43 changed files
with
1,469 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
app/client/src/PluginActionEditor/components/PluginActionToolbar/components/DocsMenuItem.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React, { useCallback } from "react"; | ||
import { MenuItem } from "@appsmith/ads"; | ||
import { createMessage, DOCUMENTATION } from "ee/constants/messages"; | ||
import { DocsLink, openDoc } from "constants/DocumentationLinks"; | ||
import { usePluginActionContext } from "../../../PluginActionContext"; | ||
|
||
export const DocsMenuItem = () => { | ||
const { plugin } = usePluginActionContext(); | ||
const onDocsClick = useCallback(() => { | ||
openDoc(DocsLink.QUERY, plugin.documentationLink, plugin.name); | ||
}, [plugin]); | ||
|
||
if (!plugin.documentationLink) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<MenuItem | ||
className="t--datasource-documentation-link" | ||
onSelect={onDocsClick} | ||
startIcon="book-line" | ||
> | ||
{createMessage(DOCUMENTATION)} | ||
</MenuItem> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
app/client/src/ce/pages/Editor/AppPluginActionEditor/components/AppPluginActionToolbar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import React from "react"; | ||
import { PluginActionToolbar } from "PluginActionEditor"; | ||
import AppPluginActionMenu from "./PluginActionMoreActions"; | ||
import { ToolbarMenu } from "./ToolbarMenu"; | ||
|
||
const AppPluginActionToolbar = () => { | ||
return <PluginActionToolbar menuContent={<AppPluginActionMenu />} />; | ||
return <PluginActionToolbar menuContent={<ToolbarMenu />} />; | ||
}; | ||
|
||
export default AppPluginActionToolbar; |
Oops, something went wrong.