=> {
if (!providerId || isBlocked) return null;
@@ -327,10 +329,10 @@ export function LaunchStep({
On a schedule
- {!isAdvanced &&
+ {!canUseScheduleMode &&
!isBlocked &&
(isManualOnly ? (
@@ -341,7 +343,7 @@ export function LaunchStep({
- {!isAdvanced && !isBlocked && (
+ {isManualOnly && !isBlocked && (
Scheduled scans are not available for this account. Run now to get
immediate findings.
@@ -361,6 +363,8 @@ export function LaunchStep({
disabled={isLaunching || !providerId}
showLaunchInitialScan
showNextScheduledCopy
+ canUseAdvancedSchedule={isAdvanced}
+ showCloudUpgradeBadge={isDailyLegacy}
/>
)}
diff --git a/ui/components/scans/launch-scan-modal.test.tsx b/ui/components/scans/launch-scan-modal.test.tsx
index 73e648a691..f413603caf 100644
--- a/ui/components/scans/launch-scan-modal.test.tsx
+++ b/ui/components/scans/launch-scan-modal.test.tsx
@@ -1,7 +1,7 @@
import { render, screen, waitFor } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import type { ComponentProps } from "react";
-import { beforeEach, describe, expect, it, vi } from "vitest";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
const {
getScheduleMock,
@@ -91,12 +91,14 @@ vi.mock("@/app/(prowler)/_overview/_components/accounts-selector", () => ({
onBatchChange,
selectedValues,
id,
+ placeholder = "All Providers",
}: {
disabledValues?: string[];
providers: { id: string; attributes: { alias: string; uid: string } }[];
onBatchChange: (filterKey: string, values: string[]) => void;
selectedValues: string[];
id?: string;
+ placeholder?: string;
}) => (
@@ -108,7 +110,7 @@ vi.mock("@/app/(prowler)/_overview/_components/accounts-selector", () => ({
onBatchChange("provider_id__in", [event.target.value])
}
>
-
+
{providers.map((provider) => (
{headerAction}
@@ -175,7 +172,6 @@ export function ScanScheduleFields({
render={({ field }) => (
(
-
- Repeats
- {cloudUpgradeBadge}
-
+ Repeats