You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by li...@apache.org on 2020/03/12 10:00:43 UTC

[incubator-dolphinscheduler] branch dev updated: fix: The toolbar buttons of Dag disable bug (#2124)

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

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


The following commit(s) were added to refs/heads/dev by this push:
     new 9fda4da  fix: The toolbar buttons of Dag disable bug (#2124)
9fda4da is described below

commit 9fda4da70ea2e2301470e9354a5f65e1c1c7b0e7
Author: Rubik-W <39...@users.noreply.github.com>
AuthorDate: Thu Mar 12 18:00:33 2020 +0800

    fix: The toolbar buttons of Dag disable bug (#2124)
---
 dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/config.js | 6 +++---
 dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/config.js b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/config.js
index a9a51aa..db8acf3 100755
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/config.js
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/config.js
@@ -26,7 +26,7 @@ import Permissions from '@/module/permissions'
  * @desc tooltip
  */
 const toolOper = (dagThis) => {
-  let disabled =!dagThis.$store.state.dag.isDetails// Permissions.getAuth() === false ? false : !dagThis.$store.state.dag.isDetails
+  let disabled =!!dagThis.$store.state.dag.isDetails// Permissions.getAuth() === false ? false : !dagThis.$store.state.dag.isDetails
   return [
     {
       code: 'pointer',
@@ -49,13 +49,13 @@ const toolOper = (dagThis) => {
     {
       code: 'download',
       icon: 'ans-icon-download',
-      disable: !!dagThis.type,
+      disable: !dagThis.type,
       desc: `${i18n.$t('Download')}`
     },
     {
       code: 'screen',
       icon: 'ans-icon-max',
-      disable: disabled,
+      disable: false,
       desc: `${i18n.$t('Full Screen')}`
     }
   ]
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue
index d912a9a..7d6f95d 100755
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue
@@ -293,7 +293,7 @@
         let is = true
         let code = ''
 
-        if (!item.disable) {
+        if (item.disable) {
           return
         }