is_secret_repository

dev_cs
hjm 6 years ago
parent 776352ab52
commit 63ff1be342

@ -449,7 +449,7 @@ export default class TPMsettings extends Component {
multi_webssh:false multi_webssh:false
}); });
} else { } else {
if (this.state.init_is_secret_repository && !this.state.vnc) { if (this.state.init_is_secret_repository && !this.state.vnc && this.state.is_secret_repository == true) {
this.confirmDeleteSecretRepo({ this.confirmDeleteSecretRepo({
onOk: () => { onOk: () => {
this.setState({ this.setState({
@ -615,7 +615,7 @@ export default class TPMsettings extends Component {
// } // }
const vnc = e.target.checked; const vnc = e.target.checked;
if (!vnc) { if (!vnc) {
if (this.state.init_is_secret_repository && this.state.webssh != 2) { if (this.state.init_is_secret_repository && this.state.webssh != 2 && this.state.is_secret_repository == true) {
this.confirmDeleteSecretRepo({ this.confirmDeleteSecretRepo({
onOk: () => { onOk: () => {
this.setState({ this.setState({

Loading…
Cancel
Save