未验证 提交 9fda4da7 编写于 作者: R Rubik-W 提交者: GitHub

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

上级 712a1bc1
......@@ -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')}`
}
]
......
......@@ -293,7 +293,7 @@
let is = true
let code = ''
if (!item.disable) {
if (item.disable) {
return
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册