File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs._index Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -353,6 +353,7 @@ function CancelRuns({ onOpen }: { onOpen: (open: boolean) => void }) {
353353 < input type = "hidden" name = "failedRedirect" value = { failedRedirect } />
354354 < input type = "hidden" name = "organizationSlug" value = { organization . slug } />
355355 < input type = "hidden" name = "projectSlug" value = { project . slug } />
356+ < input type = "hidden" name = "environmentSlug" value = { environment . slug } />
356357 { [ ...selectedItems ] . map ( ( runId ) => (
357358 < input key = { runId } type = "hidden" name = "runIds" value = { runId } />
358359 ) ) }
@@ -411,6 +412,7 @@ function ReplayRuns({ onOpen }: { onOpen: (open: boolean) => void }) {
411412 < input type = "hidden" name = "failedRedirect" value = { failedRedirect } />
412413 < input type = "hidden" name = "organizationSlug" value = { organization . slug } />
413414 < input type = "hidden" name = "projectSlug" value = { project . slug } />
415+ < input type = "hidden" name = "environmentSlug" value = { environment . slug } />
414416 { [ ...selectedItems ] . map ( ( runId ) => (
415417 < input key = { runId } type = "hidden" name = "runIds" value = { runId } />
416418 ) ) }
Original file line number Diff line number Diff line change 11import { parse } from "@conform-to/zod" ;
2- import { ActionFunctionArgs } from "@remix-run/router" ;
2+ import { type ActionFunctionArgs } from "@remix-run/router" ;
33import { z } from "zod" ;
44import { prisma } from "~/db.server" ;
55import { redirectWithErrorMessage , redirectWithSuccessMessage } from "~/models/message.server" ;
@@ -11,6 +11,7 @@ import { CreateBulkActionService } from "~/v3/services/bulk/createBulkAction.ser
1111const FormSchema = z . object ( {
1212 organizationSlug : z . string ( ) ,
1313 projectSlug : z . string ( ) ,
14+ environmentSlug : z . string ( ) ,
1415 failedRedirect : z . string ( ) ,
1516 runIds : z . array ( z . string ( ) ) . or ( z . string ( ) ) ,
1617} ) ;
@@ -65,6 +66,7 @@ export async function action({ request }: ActionFunctionArgs) {
6566 const path = v3RunsPath (
6667 { slug : submission . value . organizationSlug } ,
6768 { slug : project . slug } ,
69+ { slug : submission . value . environmentSlug } ,
6870 {
6971 bulkId : result . friendlyId ,
7072 }
Original file line number Diff line number Diff line change 11import { parse } from "@conform-to/zod" ;
2- import { ActionFunctionArgs } from "@remix-run/router" ;
2+ import { type ActionFunctionArgs } from "@remix-run/router" ;
33import { z } from "zod" ;
44import { prisma } from "~/db.server" ;
55import { redirectWithErrorMessage , redirectWithSuccessMessage } from "~/models/message.server" ;
@@ -11,6 +11,7 @@ import { CreateBulkActionService } from "~/v3/services/bulk/createBulkAction.ser
1111const FormSchema = z . object ( {
1212 organizationSlug : z . string ( ) ,
1313 projectSlug : z . string ( ) ,
14+ environmentSlug : z . string ( ) ,
1415 failedRedirect : z . string ( ) ,
1516 runIds : z . array ( z . string ( ) ) . or ( z . string ( ) ) ,
1617} ) ;
@@ -65,6 +66,7 @@ export async function action({ request }: ActionFunctionArgs) {
6566 const path = v3RunsPath (
6667 { slug : submission . value . organizationSlug } ,
6768 { slug : project . slug } ,
69+ { slug : submission . value . environmentSlug } ,
6870 {
6971 bulkId : result . friendlyId ,
7072 }
You can’t perform that action at this time.
0 commit comments