tangled
alpha
login
or
join now
openstatus.dev
/
openstatus
5
fork
atom
Openstatus
www.openstatus.dev
5
fork
atom
overview
issues
pulls
pipelines
fix: remove test button on onboarding
Maximilian Kaske
2 years ago
f84a315a
0868536b
+7
-1
2 changed files
expand all
collapse all
unified
split
apps
web
src
app
app
[workspaceSlug]
onboarding
page.tsx
components
forms
monitor
form.tsx
+2
apps/web/src/app/app/[workspaceSlug]/onboarding/page.tsx
···
38
38
<MonitorForm
39
39
notifications={allNotifications}
40
40
defaultSection="request"
41
41
+
// FIXME: we are getting an https://react.dev/errors/482 error here!
42
42
+
withTestButton={false}
41
43
/>
42
44
</div>
43
45
<div className="hidden h-full md:col-span-1 md:block">
+5
-1
apps/web/src/components/forms/monitor/form.tsx
···
47
47
tags?: MonitorTag[];
48
48
pages?: Page[];
49
49
nextUrl?: string;
50
50
+
withTestButton?: boolean;
50
51
}
51
52
52
53
const ABORT_TIMEOUT = 7_000; // in ms
···
59
60
pages,
60
61
tags,
61
62
nextUrl,
63
63
+
withTestButton = true,
62
64
}: Props) {
63
65
const _assertions = defaultValues?.assertions
64
66
? assertions.deserialize(defaultValues?.assertions).map((a) => a.schema)
···
310
312
) : null}
311
313
</Tabs>
312
314
<div className="grid gap-4 sm:flex sm:items-start sm:justify-end">
313
313
-
<RequestTestButton {...{ form, pingEndpoint }} />
315
315
+
{withTestButton ? (
316
316
+
<RequestTestButton {...{ form, pingEndpoint }} />
317
317
+
) : null}
314
318
<SaveButton
315
319
isPending={isPending}
316
320
isDirty={form.formState.isDirty}