Skip to content

Commit

Permalink
fix: sorting for both source and connector
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmullapudi committed Mar 23, 2022
1 parent 3754d0d commit 660c2ad
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions airbyte-webapp/src/components/EntityTable/ImplementationTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ const ImplementationTable: React.FC<IProps> = ({
<>
<FormattedMessage id="tables.connector" />
<SortButton
wasActive={sortBy === "entity"}
wasActive={sortBy === "connector"}
lowToLarge={sortOrder === SortOrderEnum.ASC}
onClick={() => onSortClick("entity")}
onClick={() => onSortClick("connector")}
/>
</>
),
Expand All @@ -116,7 +116,16 @@ const ImplementationTable: React.FC<IProps> = ({
),
},
{
Header: <FormattedMessage id={`tables.${entity}ConnectWith`} />,
Header: (
<>
<FormattedMessage id={`tables.${entity}ConnectWith`} />
<SortButton
wasActive={sortBy === "destination"}
lowToLarge={sortOrder === SortOrderEnum.ASC}
onClick={() => onSortClick("destination")}
/>
</>
),
accessor: "connectEntities",
Cell: ({ cell, row }: CellProps<EntityTableDataItem>) => (
<ConnectEntitiesCell
Expand Down
2 changes: 1 addition & 1 deletion airbyte-webapp/src/config/defaultConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const defaultConfig: Config = {
segment: { enabled: true, token: "" },
healthCheckInterval: 20000,
version: "dev",
apiUrl: `${window.location.protocol}//${window.location.hostname}:8001/api/v1/`,
apiUrl: `http://ec2-52-91-211-217.compute-1.amazonaws.com:8000/api/v1/`,
integrationUrl: "/docs",
oauthRedirectUrl: `${window.location.protocol}//${window.location.host}`,
isDemo: false,
Expand Down

0 comments on commit 660c2ad

Please sign in to comment.