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, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

View File

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

View File

@ -98,6 +98,7 @@ class Devices {
catch (err) { catch (err) {
log.error(err); log.error(err);
} }
$('#screens').removeClass('hide');
return event.returnValue = true; 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", "name": "mcopy-app",
"version": "1.8.111", "version": "1.8.112",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {

View File

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

View File

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

View File

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

4
package-lock.json generated
View File

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

View File

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

View File

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