Merge pull request #1474 from loadchange/feat/1.1.0

fix: config editor beta button
This commit is contained in:
Fury Zhu 2019-07-04 12:47:51 +08:00 committed by GitHub
commit df1f912f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -359,6 +359,7 @@ class ConfigEditor extends React.Component {
render() {
const {
loading,
betaIps,
openAdvancedSettings,
isBeta,
isNewConfig,
@ -517,7 +518,12 @@ class ConfigEditor extends React.Component {
</Button>
)}
{isBeta && tabActiveKey !== 'production' && (
<Button size="large" type="primary" onClick={() => this.openDiff('publishBeta')}>
<Button
size="large"
type="primary"
disabled={!betaIps}
onClick={() => this.openDiff('publishBeta')}
>
{locale.release}
</Button>
)}

File diff suppressed because one or more lines are too long