Skip to content

Commit

Permalink
Missing Key Text and Link
Browse files Browse the repository at this point in the history
  • Loading branch information
bassmaster187 committed Jan 19, 2025
1 parent 3a70ca2 commit f0aad96
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion TeslaLogger/www/admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,18 @@ function GetCurrentData()
}
else if (jsonData["FatalError"])
{
if (jsonData["FatalError"] == "missing_key")
{
var missingkeytext = "<?php t("FatalErrorMissingKey"); ?>";
missingkeytext = missingkeytext.replace("{LINK}", '<a href="https://www.tesla.com/_ak/teslalogger.de" target="_blank">LINK</a>');

$('#car_status').html('<font color="red">'+missingkeytext+'</font>');
}
else
$('#car_status').html("<font color='red'>"+ jsonData["FatalError"] +"</font>");

$('#car_statusLabel').html("<font color='red'><?php t("Fatal Error"); ?>: </font>");
$('#car_status').html("<font color='red'>"+ jsonData["FatalError"] +"</font>");

updateSMT(jsonData);
}
else if (jsonData["charging"])
Expand Down

0 comments on commit f0aad96

Please sign in to comment.