This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 793abdaa68 [INLONG-10783][Dashboard] Add enableCreateResource field to
all sinks (#10785)
793abdaa68 is described below
commit 793abdaa68438a4f3dc38c4d1fa51d34f25e78e9
Author: kamianlaida <[email protected]>
AuthorDate: Mon Aug 19 10:13:38 2024 +0800
[INLONG-10783][Dashboard] Add enableCreateResource field to all sinks
(#10785)
---
.../src/plugins/sinks/common/SinkDefaultInfo.ts | 26 ++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/inlong-dashboard/src/plugins/sinks/common/SinkDefaultInfo.ts
b/inlong-dashboard/src/plugins/sinks/common/SinkDefaultInfo.ts
index 7ec7fb8798..2fd7884aa9 100644
--- a/inlong-dashboard/src/plugins/sinks/common/SinkDefaultInfo.ts
+++ b/inlong-dashboard/src/plugins/sinks/common/SinkDefaultInfo.ts
@@ -135,6 +135,32 @@ export class SinkDefaultInfo implements DataWithBackend,
RenderRow, RenderList {
@I18n('meta.Sinks.Description')
description: string;
+ @FieldDecorator({
+ type: 'radio',
+ rules: [{ required: true }],
+ initialValue: 1,
+ tooltip: i18n.t('meta.Sinks.EnableCreateResourceHelp'),
+ props: values => ({
+ disabled: [110].includes(values?.status),
+ options: [
+ {
+ label: i18n.t('basic.Yes'),
+ value: 1,
+ },
+ {
+ label: i18n.t('basic.No'),
+ value: 0,
+ },
+ ],
+ }),
+ visible: values => Boolean(values.sinkType),
+ })
+ @SyncField()
+ @SyncMoveDbField()
+ @IngestionField()
+ @I18n('meta.Sinks.EnableCreateResource')
+ enableCreateResource: number;
+
@FieldDecorator({
type: 'select',
props: {