Browse Source

fix: The toolbar buttons of Dag disable bug (#2124)

pull/2/head
Rubik-W 5 years ago committed by GitHub
parent
commit
9fda4da70e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/config.js
  2. 2
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue

6
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/config.js

@ -26,7 +26,7 @@ import Permissions from '@/module/permissions'
* @desc tooltip * @desc tooltip
*/ */
const toolOper = (dagThis) => { 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 [ return [
{ {
code: 'pointer', code: 'pointer',
@ -49,13 +49,13 @@ const toolOper = (dagThis) => {
{ {
code: 'download', code: 'download',
icon: 'ans-icon-download', icon: 'ans-icon-download',
disable: !!dagThis.type, disable: !dagThis.type,
desc: `${i18n.$t('Download')}` desc: `${i18n.$t('Download')}`
}, },
{ {
code: 'screen', code: 'screen',
icon: 'ans-icon-max', icon: 'ans-icon-max',
disable: disabled, disable: false,
desc: `${i18n.$t('Full Screen')}` desc: `${i18n.$t('Full Screen')}`
} }
] ]

2
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue

@ -293,7 +293,7 @@
let is = true let is = true
let code = '' let code = ''
if (!item.disable) { if (item.disable) {
return return
} }

Loading…
Cancel
Save