This is an automated email from the ASF dual-hosted git repository.

benjobs pushed a commit to branch dev-2.1.5
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git


The following commit(s) were added to refs/heads/dev-2.1.5 by this push:
     new 09557c052 [Improve] app start-modal minor improvement
09557c052 is described below

commit 09557c052e0976553f21beeac2fffb45b2747ad4
Author: benjobs <[email protected]>
AuthorDate: Mon Sep 16 14:09:03 2024 +0800

    [Improve] app start-modal minor improvement
---
 .../views/flink/app/components/AppView/StartApplicationModal.vue   | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/streampark-console/streampark-console-webapp/src/views/flink/app/components/AppView/StartApplicationModal.vue
 
b/streampark-console/streampark-console-webapp/src/views/flink/app/components/AppView/StartApplicationModal.vue
index 9c415fd95..73e82385d 100644
--- 
a/streampark-console/streampark-console-webapp/src/views/flink/app/components/AppView/StartApplicationModal.vue
+++ 
b/streampark-console/streampark-console-webapp/src/views/flink/app/components/AppView/StartApplicationModal.vue
@@ -15,7 +15,7 @@
   limitations under the License.
 -->
 <script lang="ts">
-  import { reactive, defineComponent } from 'vue';
+  import { defineComponent, reactive } from 'vue';
   import { useI18n } from '/@/hooks/web/useI18n';
   import { exceptionPropWidth } from '/@/utils';
 
@@ -50,6 +50,7 @@
       Object.assign(receiveData, data);
       resetFields();
       setFieldsValue({
+        restoreSavepoint: receiveData.selected != null,
         savepointPath: receiveData.selected?.path,
       });
     }
@@ -75,7 +76,7 @@
           checkedChildren: 'ON',
           unCheckedChildren: 'OFF',
         },
-        defaultValue: receiveData.selected != null,
+        defaultValue: false,
         afterItem: () => h('span', { class: 'pop-tip' }, 
t('flink.app.view.savepointTip')),
       },
       {
@@ -132,7 +133,7 @@
       const formValue = (await validate()) as Recordable;
       const restoreOrTriggerSavepoint = formValue.restoreSavepoint;
       const savepointPath = restoreOrTriggerSavepoint ? 
formValue['savepointPath'] : null;
-      handleReset();
+      await handleReset();
       const { data } = await fetchStart({
         id: receiveData.application.id,
         restoreOrTriggerSavepoint,

Reply via email to