Do not display broken layout before devices are ready

This commit is contained in:
Matt McWilliams 2024-05-23 20:56:32 -04:00
parent 5d31bf0020
commit 5597aea828
11 changed files with 13 additions and 10 deletions

View File

@ -1,5 +1,5 @@
{
"version": "1.8.111",
"version": "1.8.112",
"ext_port": 1111,
"profiles": {
"mcopy": {

View File

@ -13,7 +13,7 @@
</head>
<body onload="init();" style="background:#272b30;">
<nav id="toolbar"></nav>
<div id="screens">
<div id="screens" class="hide">
<div id="sequencer" class="screen" style="display: block;">
<div id="counters">
<div class="cam">

View File

@ -98,6 +98,7 @@ class Devices {
catch (err) {
log.error(err);
}
$('#screens').removeClass('hide');
return event.returnValue = true;
});
}

File diff suppressed because one or more lines are too long

2
app/package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "mcopy-app",
"version": "1.8.111",
"version": "1.8.112",
"lockfileVersion": 2,
"requires": true,
"packages": {

View File

@ -1,6 +1,6 @@
{
"name": "mcopy-app",
"version": "1.8.111",
"version": "1.8.112",
"description": "GUI for the mcopy small gauge film optical printer platform",
"main": "main.js",
"scripts": {

View File

@ -102,6 +102,8 @@ class Devices {
log.error(err);
}
$('#screens').removeClass('hide');
return event.returnValue = true;
}

View File

@ -1,5 +1,5 @@
{
"version": "1.8.111",
"version": "1.8.112",
"ext_port": 1111,
"profiles": {
"mcopy": {

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "mcopy",
"version": "1.8.111",
"version": "1.8.112",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "mcopy",
"version": "1.8.111",
"version": "1.8.112",
"license": "MIT",
"dependencies": {
"alert": "file:app/lib/alert",

View File

@ -1,6 +1,6 @@
{
"name": "mcopy",
"version": "1.8.111",
"version": "1.8.112",
"description": "Small gauge film optical printer platform",
"main": "build.js",
"directories": {

View File

@ -1,5 +1,5 @@
{
"version": "1.8.111",
"version": "1.8.112",
"ext_port": 1111,
"profiles": {
"mcopy": {