is_secret_repository

dev_cs
hjm 5 years ago
parent 776352ab52
commit 63ff1be342

@ -449,7 +449,7 @@ export default class TPMsettings extends Component {
multi_webssh:false
});
} 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({
onOk: () => {
this.setState({
@ -615,7 +615,7 @@ export default class TPMsettings extends Component {
// }
const vnc = e.target.checked;
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({
onOk: () => {
this.setState({

Loading…
Cancel
Save