Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update reboot.js #2685

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions desktop/js/reboot.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ function redirectIP() {
new ping(ip, function (status, e) {
// console.log(status)
if (redirect == 100) {
document.getElementById('div_reboot_jeedom_texte').empty().html('<h6><?php echo config::byKey("product_name"); ?> {{Impossible de trouver la box suite au redémarrage ...}}</h6>')
document.getElementById('div_reboot_jeedom_texte').empty().html('<h6>' + JEEDOM_PRODUCT_NAME + ' {{Impossible de trouver la box suite au redémarrage ...}}</h6>')
} else {
if (status == 'timeout') {
document.getElementById('progressbar_reboot').style.width = redirect + '%'
setTimeout(function () {
redirectIP()
}, 2000)
} else if(status == 'responded') {
document.getElementById('div_reboot_jeedom_texte').empty().html('<h6><?php echo config::byKey("product_name"); ?> {{est de nouveau opérationnel. Vous allez être redirigé vers votre dashboard. Cela peut prendre environ 30 secondes.}}</h6>')
document.getElementById('div_reboot_jeedom_texte').empty().html('<h6>' + JEEDOM_PRODUCT_NAME + ' {{est de nouveau opérationnel. Vous allez être redirigé vers votre dashboard. Cela peut prendre environ 30 secondes.}}</h6>')
document.getElementById('progressbar_reboot').addClass('progress-bar-success').removeClass('progress-bar-danger')
document.getElementById('progressbar_reboot').style.width = '75%'
setTimeout(function() {
Expand All @@ -46,7 +46,7 @@ function returnToJeedom() {
}

function reboot_jeedom() {
document.getElementById('div_reboot_jeedom_texte').empty().html('<h6>{{Merci de patienter...}}<br /><?php echo config::byKey("product_name"); ?> {{est en cours de redémarrage.}}</h6>')
document.getElementById('div_reboot_jeedom_texte').empty().html('<h6>{{Merci de patienter...}}<br />' + JEEDOM_PRODUCT_NAME + ' {{est en cours de redémarrage.}}</h6>')
document.getElementById('progressbar_reboot').style.width = '25%'
redirectIP()
}
Expand Down
Loading