Merge branch 'feature/ui_table' of https://github.com/langflow-ai/langflow into feature/ui_table
This commit is contained in:
commit
595de1eae8
2 changed files with 13 additions and 35 deletions
|
|
@ -49,7 +49,7 @@ export default function InputGlobalComponent({
|
|||
!data.node?.template[name].value &&
|
||||
data.node?.template[name].display_name
|
||||
) {
|
||||
if (unavaliableFields[data.node?.template[name].display_name!]) {
|
||||
if (unavaliableFields[data.node?.template[name].display_name!] && !disabled) {
|
||||
setTimeout(() => {
|
||||
setDb(true);
|
||||
onChange(unavaliableFields[data.node?.template[name].display_name!]);
|
||||
|
|
|
|||
|
|
@ -36,44 +36,41 @@ export default function ShortcutsPage() {
|
|||
|
||||
const [nodesRowData, setNodesRowData] = useState([
|
||||
{
|
||||
name: "Advanced Settings",
|
||||
name: "Advanced Settings Component",
|
||||
shortcut: advancedShortcut,
|
||||
},
|
||||
{
|
||||
name: "Minimize",
|
||||
name: "Minimize Component",
|
||||
shortcut: minizmizeShortcut,
|
||||
},
|
||||
{
|
||||
name: "Code",
|
||||
name: "Code Component",
|
||||
shortcut: codeShortcut,
|
||||
},
|
||||
{
|
||||
name: "Copy",
|
||||
name: "Copy Component",
|
||||
shortcut: copyShortcut,
|
||||
},
|
||||
{
|
||||
name: "Duplicate",
|
||||
name: "Duplicate Component",
|
||||
shortcut: duplicateShortcut,
|
||||
},
|
||||
{
|
||||
name: "Share",
|
||||
name: "Share Component",
|
||||
shortcut: shareShortcut,
|
||||
},
|
||||
{
|
||||
name: "Docs",
|
||||
name: "Docs Component",
|
||||
shortcut: docsShortcut,
|
||||
},
|
||||
{
|
||||
name: "Save",
|
||||
name: "Save Component",
|
||||
shortcut: saveShortcut,
|
||||
},
|
||||
{
|
||||
name: "Delete",
|
||||
name: "Delete Component",
|
||||
shortcut: deleteShortcut,
|
||||
},
|
||||
]);
|
||||
|
||||
const [flowRowData, setFlowRowData] = useState([
|
||||
{
|
||||
name: "Open Playground",
|
||||
shortcut: interactionShortcut,
|
||||
|
|
@ -87,6 +84,7 @@ export default function ShortcutsPage() {
|
|||
shortcut: redoShortcut,
|
||||
},
|
||||
]);
|
||||
|
||||
return (
|
||||
<div className="flex h-full w-full flex-col gap-6">
|
||||
<div className="flex w-full items-center justify-between gap-4 space-y-0.5">
|
||||
|
|
@ -99,19 +97,13 @@ export default function ShortcutsPage() {
|
|||
/>
|
||||
</h2>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
Customize, manage and create shortcuts for quick access to
|
||||
Manage Shortcuts for quick access to
|
||||
frequently used actions.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="grid gap-6 pb-8">
|
||||
<Card x-chunk="dashboard-04-chunk-2">
|
||||
<CardHeader>
|
||||
<CardTitle>Nodes</CardTitle>
|
||||
<CardDescription>
|
||||
Shortcuts relating to the nodes in the workspace.
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<Card x-chunk="dashboard-04-chunk-2" className="pt-4">
|
||||
<CardContent>
|
||||
<TableComponent
|
||||
domLayout="autoHeight"
|
||||
|
|
@ -121,20 +113,6 @@ export default function ShortcutsPage() {
|
|||
/>
|
||||
</CardContent>
|
||||
</Card>
|
||||
<Card x-chunk="dashboard-04-chunk-2">
|
||||
<CardHeader>
|
||||
<CardTitle>Flow</CardTitle>
|
||||
<CardDescription>Shortcuts relating to the flow.</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<TableComponent
|
||||
domLayout="autoHeight"
|
||||
pagination={false}
|
||||
columnDefs={colDefs}
|
||||
rowData={flowRowData}
|
||||
/>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue