Skip to content

Commit 907df7d

Browse files
authored
Merge pull request #3398 from jeedom/feat/recovery-product-name
Recovery use new build-provided product_name for Smart/Atlas
2 parents 5bf9c97 + d9b10f6 commit 907df7d

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

desktop/php/recovery.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,14 @@
1212
throw new Exception('{{Cette fonctionnalité est uniquement disponible sur les systèmes à base ARM64}}');
1313
}
1414

15-
$product = config::byKey('product_name');
16-
$hardware = strtolower(jeedom::getHardwareName());
17-
$image = config::byKey('product_connection_image');
18-
$mbState = config::byKey('mbState');
19-
sendVarToJS('jeephp2js.hardware', $hardware);
15+
sendVarToJS('jeephp2js.hardware', strtolower(jeedom::getHardwareName()));
2016
?>
2117

2218
<div class="text-center" id="div_recovery">
2319
<h3 id="recovery-title">{{Restauration système}}</h3>
24-
<img src="<?= $image ?>" alt="Product Image">
20+
<img src="<?= config::byKey('product_connection_image') ?>" alt="Product Image">
2521
<div class="bold" id="recovery-step" style="min-height:50px">
26-
<?= $product . ' ' . ucfirst($hardware) ?> {{intègre une fonctionnalité de restauration système automatique au démarrage, avec deux modes d'exécution}} :
22+
<?= config::byKey('product_name') ?> {{intègre une fonctionnalité de restauration système automatique au démarrage, avec deux modes d'exécution}} :
2723
</div>
2824
<div class="progress" style="display:none">
2925
<div id="recovery-progress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
@@ -44,7 +40,7 @@
4440
{{La restauration du système aura lieu au démarrage si la clé est branchée dans le port USB situé en haut à droite.}}
4541
</li>
4642
</ul>
47-
<?php if ($mbState == 0) { ?>
43+
<?php if (config::byKey('mbState') == 0) { ?>
4844
<br>
4945
<div class="alert alert-info">
5046
{{Consulter la documentation dédiée pour plus de détails}} :
@@ -81,7 +77,8 @@
8177
}
8278

8379
#div_recovery>img {
84-
height: 210px;
80+
max-width: 80%;
81+
max-height: 200px;
8582
}
8683

8784
#recovery-details,

0 commit comments

Comments
 (0)