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 <[email protected]>
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
}