Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/newjitsu' into newjitsu
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Dec 8, 2023
2 parents 4fb9074 + 2c77104 commit c7d54d7
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions webapps/console/pages/[workspaceId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,26 @@ function DestinationCard({ dest, selected }: { dest: DestinationConfig; selected
selected={selected}
icon={coreDestinationsMap[dest.destinationType]?.icon || <FaGlobe className="w-full h-full" />}
title={dest.name}
actions={[
{ label: "Edit", href: `/destinations?id=${dest.id}`, icon: <Edit3 className="w-4 h-4" /> },
actions={
dest.provisioned
? []
: [
{ label: "Edit", href: `/destinations?id=${dest.id}`, icon: <Edit3 className="w-4 h-4" /> },

{
label: "View Connected Streams",
icon: <Zap className="w-4 h-4" />,
href: `/connections?sorting=${encodeURIComponent(
btoa(JSON.stringify({ columns: [{ field: "Source", order: "ascend" }] }))
)}&destination=${encodeURIComponent(dest.id)}`,
},
{
label: "View Syncs",
icon: <Share2 className="w-4 h-4" />,
href: `/syncs?destination=${encodeURIComponent(dest.id)}`,
},
]}
{
label: "View Connected Streams",
icon: <Zap className="w-4 h-4" />,
href: `/connections?sorting=${encodeURIComponent(
btoa(JSON.stringify({ columns: [{ field: "Source", order: "ascend" }] }))
)}&destination=${encodeURIComponent(dest.id)}`,
},
{
label: "View Syncs",
icon: <Share2 className="w-4 h-4" />,
href: `/syncs?destination=${encodeURIComponent(dest.id)}`,
},
]
}
configLink={!dest.provisioned ? `/${workspace.id}/destinations?id=${dest.id}` : `/${workspace.id}/destinations`}
/>
);
Expand Down

0 comments on commit c7d54d7

Please sign in to comment.