mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 10:48:26 +00:00
Use "N/A" if local.version is null to avoid empty version
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -485,8 +485,8 @@ function updateVersionInfo() {
|
|||||||
var versions = [
|
var versions = [
|
||||||
{
|
{
|
||||||
name: "Docker Tag",
|
name: "Docker Tag",
|
||||||
local: version.docker.local || null,
|
local: version.docker.local,
|
||||||
remote: version.docker.remote || null,
|
remote: version.docker.remote,
|
||||||
branch: null,
|
branch: null,
|
||||||
hash: null,
|
hash: null,
|
||||||
url: "https://github.com/pi-hole/docker-pi-hole/releases",
|
url: "https://github.com/pi-hole/docker-pi-hole/releases",
|
||||||
@@ -494,28 +494,28 @@ function updateVersionInfo() {
|
|||||||
{
|
{
|
||||||
name: "Core",
|
name: "Core",
|
||||||
local: version.core.local.version || "N/A",
|
local: version.core.local.version || "N/A",
|
||||||
remote: version.core.remote.version || "N/A",
|
remote: version.core.remote.version,
|
||||||
branch: version.core.local.branch || null,
|
branch: version.core.local.branch,
|
||||||
hash: version.core.local.hash || null,
|
hash: version.core.local.hash,
|
||||||
hash_remote: version.core.remote.hash || null,
|
hash_remote: version.core.remote.hash,
|
||||||
url: "https://github.com/pi-hole/pi-hole/releases",
|
url: "https://github.com/pi-hole/pi-hole/releases",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "FTL",
|
name: "FTL",
|
||||||
local: version.ftl.local.version || "N/A",
|
local: version.ftl.local.version || "N/A",
|
||||||
remote: version.ftl.remote.version || "N/A",
|
remote: version.ftl.remote.version,
|
||||||
branch: version.ftl.local.branch || null,
|
branch: version.ftl.local.branch,
|
||||||
hash: version.ftl.local.hash || null,
|
hash: version.ftl.local.hash,
|
||||||
hash_remote: version.ftl.remote.hash || null,
|
hash_remote: version.ftl.remote.hash,
|
||||||
url: "https://github.com/pi-hole/FTL/releases",
|
url: "https://github.com/pi-hole/FTL/releases",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Web interface",
|
name: "Web interface",
|
||||||
local: version.web.local.version || "N/A",
|
local: version.web.local.version || "N/A",
|
||||||
remote: version.web.remote.version || "N/A",
|
remote: version.web.remote.version,
|
||||||
branch: version.web.local.branch || null,
|
branch: version.web.local.branch,
|
||||||
hash: version.web.local.hash || null,
|
hash: version.web.local.hash,
|
||||||
hash_remote: version.web.remote.hash || null,
|
hash_remote: version.web.remote.hash,
|
||||||
url: "https://github.com/pi-hole/web/releases",
|
url: "https://github.com/pi-hole/web/releases",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user