mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-15 00:47:46 +01:00
Hide everything while loading config.json
This commit is contained in:
parent
dee9e06b2f
commit
af1e2e144a
@ -131,6 +131,7 @@ export default class App extends Component {
|
|||||||
bouncerNetworks: new Map(),
|
bouncerNetworks: new Map(),
|
||||||
activeBuffer: null,
|
activeBuffer: null,
|
||||||
connectForm: true,
|
connectForm: true,
|
||||||
|
loading: true,
|
||||||
dialog: null,
|
dialog: null,
|
||||||
error: null,
|
error: null,
|
||||||
openPanels: {
|
openPanels: {
|
||||||
@ -186,6 +187,8 @@ export default class App extends Component {
|
|||||||
* - Default server URL constructed from the current URL location
|
* - Default server URL constructed from the current URL location
|
||||||
*/
|
*/
|
||||||
handleConfig(config) {
|
handleConfig(config) {
|
||||||
|
this.setState({ loading: false });
|
||||||
|
|
||||||
let connectParams = {};
|
let connectParams = {};
|
||||||
|
|
||||||
if (config.server) {
|
if (config.server) {
|
||||||
@ -1123,6 +1126,10 @@ export default class App extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
if (this.state.loading) {
|
||||||
|
return html`<section id="connect"></section>`;
|
||||||
|
}
|
||||||
|
|
||||||
let activeBuffer = null, activeServer = null, activeBouncerNetwork = null;
|
let activeBuffer = null, activeServer = null, activeBouncerNetwork = null;
|
||||||
let isBouncer = false;
|
let isBouncer = false;
|
||||||
if (this.state.buffers.get(this.state.activeBuffer)) {
|
if (this.state.buffers.get(this.state.activeBuffer)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user