diff --git a/README.md b/README.md index d00815d5..773f2a5b 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ - Docker Integration - Status light + CPU, Memory & Network Reporting *(click on the status light)* - Service Integration - - Currently supports Sonarr, Radarr, Ombi, Emby, Jellyfin, Jellyseerr, NZBGet, ruTorrent + - Currently supports Sonarr, Radarr, Ombi, Emby, Jellyfin, Jellyseerr ([thanks to ilusi0n](https://github.com/benphelps/homepage/pull/34)), NZBGet, ruTorrent - Portainer, Traefik, Speedtest Tracker, PiHole * Homepage Widgets - System Stats (Disk, CPU, Memory) diff --git a/src/components/services/item.jsx b/src/components/services/item.jsx index 957f456a..fffc6806 100644 --- a/src/components/services/item.jsx +++ b/src/components/services/item.jsx @@ -21,14 +21,19 @@ function resolveIcon(icon) { export default function Item({ service }) { return ( -
  • +
  • -
    +
    {service.icon && (
    { - window.open(service.href, "_blank").focus(); + if (service.href && service.href !== "#") { + window.open(service.href, "_blank").focus(); + } }} className="flex-shrink-0 flex items-center justify-center w-12 " > @@ -38,7 +43,9 @@ export default function Item({ service }) {
    { - window.open(service.href, "_blank").focus(); + if (service.href && service.href !== "#") { + window.open(service.href, "_blank").focus(); + } }} className="flex-1 flex items-center justify-between rounded-r-md " > @@ -48,7 +55,7 @@ export default function Item({ service }) {
    {service.container && ( - + )} diff --git a/src/skeleton/services.yaml b/src/skeleton/services.yaml index 169082a0..d6a010ab 100644 --- a/src/skeleton/services.yaml +++ b/src/skeleton/services.yaml @@ -3,15 +3,15 @@ - My First Group: - My First Service: - href: http://localhosdt/ + href: http://localhost/ description: Homepage is awesome - My Second Group: - My Second Service: - href: http://localhosdt/ + href: http://localhost/ description: Homepage is the best - My Third Group: - My Third Service: - href: http://localhosdt/ + href: http://localhost/ description: Homepage is 😎