Skip to content

Commit

Permalink
add desktopfeatures
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Oct 15, 2024
1 parent 151d89c commit cd56d5b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions js/welcomesystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import * as logmein from './logmein.js';
const welcomeSystem = (function () {
const managers = {};
let $ui;
let $additionnalmanagerui;
let stages=[ 'a', 'b', 'c', 'd' ];

return new (class exported {
Expand All @@ -34,6 +35,7 @@ const welcomeSystem = (function () {

init() {
$ui = $('#loginScreen');
$additionnalmanagerui = $('#additionnalloginScreencontent');

const self = this;
return odApiClient.auth.getauthconfig()
Expand Down Expand Up @@ -119,7 +121,8 @@ const welcomeSystem = (function () {
close() {
this.closeManagers();
$ui.addClass('hide');
setTimeout(() => { $ui.hide(); }, 1000);
// take time to read message during reconnect process
setTimeout(() => { $ui.hide(); }, 400);
}

showStatus(message) {
Expand Down Expand Up @@ -223,12 +226,15 @@ const welcomeSystem = (function () {
this.openManagers();
}

closeManagers() {
for (const name in managers)
closeManagers() {
$additionnalmanagerui.addClass('hide');
$additionnalmanagerui.hide();
for (const name in managers)
managers[name].close();
}

openManagers() {
$additionnalmanagerui.show();
for (const name in managers)
managers[name].open();
}
Expand Down

0 comments on commit cd56d5b

Please sign in to comment.