From 1c4b8d1811ea9ac61746371c38a88fe84383fb9e Mon Sep 17 00:00:00 2001
From: Amy0104 <97265214+Amy0104@users.noreply.github.com>
Date: Wed, 27 Apr 2022 17:05:27 +0800
Subject: [PATCH] [Fix][UI Next][V1.0.0-Beta] Add a return button and set the
form to disabled on the file detail page. (#9802)
---
.../src/views/resource/file/edit/index.tsx | 29 ++++++++++---------
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/dolphinscheduler-ui-next/src/views/resource/file/edit/index.tsx b/dolphinscheduler-ui-next/src/views/resource/file/edit/index.tsx
index 96466448a3..9845bdbff4 100644
--- a/dolphinscheduler-ui-next/src/views/resource/file/edit/index.tsx
+++ b/dolphinscheduler-ui-next/src/views/resource/file/edit/index.tsx
@@ -73,22 +73,23 @@ export default defineComponent({
rules={this.rules}
ref='fileFormRef'
class={styles['form-content']}
+ disabled={this.componentName !== 'resource-file-edit'}
>
- {this.componentName === 'resource-file-edit' && (
-
-
- {t('resource.file.return')}
-
+
+
+ {t('resource.file.return')}
+
+ {this.componentName === 'resource-file-edit' && (
{t('resource.file.save')}
-
- )}
+ )}
+