king
2021-11-17 fe5dc955911feb6c376298e618de673da166fcab
src/tabviews/zshare/actionList/tabbutton/index.jsx
@@ -22,6 +22,7 @@
  state = {
    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
    disabled: false,
    hidden: false,
    primaryId: ''
  }
@@ -36,7 +37,7 @@
          disabled = true
        }
      })
      this.setState({disabled})
      this.setState({disabled, hidden: disabled && btn.control === 'hidden'})
    }
  }
@@ -62,7 +63,7 @@
          }
        })
      }
      this.setState({disabled})
      this.setState({disabled, hidden: disabled && btn.control === 'hidden'})
    }
  }
@@ -167,7 +168,9 @@
  render() {
    const { btn, show } = this.props
    const { disabled } = this.state
    const { disabled, hidden } = this.state
    if (hidden) return null
    if (show === 'actionList') {
      return (