fix(overriderules): enable override rules only when a service exists (#1417)

This PR disable the 'New Override Rule' button when no Radarr/Sonarr service exists.
This commit is contained in:
Gauthier
2025-03-03 00:13:09 +01:00
committed by GitHub
parent 67bd639a43
commit 4e44282387

View File

@@ -528,6 +528,7 @@ const SettingsServices = () => {
<div className="flex h-full w-full items-center justify-center">
<Button
buttonType="ghost"
disabled={!radarrData?.length || !sonarrData?.length}
onClick={() =>
setOverrideRuleModal({
open: true,