-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show "source defined" as cursor for CDC streams, move strings to i18n (…
…#16999) * Update check on PathPopout to ensure source defined appears when the path provided is empty * i18n source defined message * Update source defined message format Move destination namespace names to i18n
- Loading branch information
Showing
5 changed files
with
37 additions
and
32 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
24 changes: 24 additions & 0 deletions
24
airbyte-webapp/src/hooks/connection/useDestinationNamespace.ts
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,24 @@ | ||
import { useIntl } from "react-intl"; | ||
|
||
import { NamespaceDefinitionType } from "core/request/AirbyteClient"; | ||
|
||
interface NamespaceOptions { | ||
namespaceDefinition: | ||
| typeof NamespaceDefinitionType.source | ||
| typeof NamespaceDefinitionType.destination | ||
| typeof NamespaceDefinitionType.customformat; | ||
namespaceFormat?: string; | ||
} | ||
|
||
export const useDestinationNamespace = (opt: NamespaceOptions): string | undefined => { | ||
const { formatMessage } = useIntl(); | ||
|
||
switch (opt.namespaceDefinition) { | ||
case NamespaceDefinitionType.source: | ||
return formatMessage({ id: "connection.catalogTree.sourceSchema" }); | ||
case NamespaceDefinitionType.destination: | ||
return formatMessage({ id: "connection.catalogTree.destinationSchema" }); | ||
case NamespaceDefinitionType.customformat: | ||
return opt.namespaceFormat; | ||
} | ||
}; |
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