diff --git a/public/react/src/modules/tpm/TPMBanner.js b/public/react/src/modules/tpm/TPMBanner.js index f79301be0..6c57bcff8 100644 --- a/public/react/src/modules/tpm/TPMBanner.js +++ b/public/react/src/modules/tpm/TPMBanner.js @@ -135,6 +135,13 @@ class TPMBanner extends Component { this.setState({ openknow:true }) + setTimeout(()=>{ + this.openknow() + this.setState({ + openknow:false + }) + }, 10000); + }else{ this.setState({ openknow:false @@ -158,6 +165,12 @@ class TPMBanner extends Component { this.setState({ openshowpublictype: true }) + setTimeout(()=>{ + this.openshowpublic() + this.setState({ + openshowpublictype:false + }) + }, 10000); } else { this.setState({ openshowpublictype: false diff --git a/public/react/src/modules/tpm/TPMIndex.js b/public/react/src/modules/tpm/TPMIndex.js index 86d0e9637..5edea264f 100644 --- a/public/react/src/modules/tpm/TPMIndex.js +++ b/public/react/src/modules/tpm/TPMIndex.js @@ -163,7 +163,7 @@ class TPMIndex extends Component { openknows:false }) let newTPMsettings=this.props.user&&this.props.user.user_id+'newTPMsettings' - storage.setItem(newTPMsettings,true); + storage.setItem(newTPMsettings,false); } @@ -174,7 +174,7 @@ class TPMIndex extends Component { let newTPMsettings=window.localStorage.getItem(getnewTPMsettings) if(newTPMsettings===undefined||newTPMsettings===false||newTPMsettings===null){ this.setState({ - openknows:true + openknows:false }) }else{ this.setState({ @@ -453,20 +453,20 @@ class TPMIndex extends Component { { this.state.is_jupyter===false?