Browse Source

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

pull/2/head
Rubik-W 4 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
*/
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')}`
}
]

2
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
}

Loading…
Cancel
Save