Skip to content

Commit

Permalink
faster links
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Dec 22, 2024
1 parent 54dca40 commit 17ca333
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/src/scenes/frame/frameLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,12 @@ export const frameLogic = kea<frameLogicType>([
renderFrame: () => framesModel.actions.renderFrame(props.frameId),
saveFrame: () => actions.submitFrameForm(),
deployFrame: () => actions.submitFrameForm(),
restartFrame: () => actions.submitFrameForm(),
stopFrame: () => actions.submitFrameForm(),
restartFrame: async () => {
await apiFetch(`/api/frames/${values.frameId}/restart`, { method: 'POST' })
},
stopFrame: async () => {
await apiFetch(`/api/frames/${values.frameId}/stop`, { method: 'POST' })
},
updateScene: ({ sceneId, scene }) => {
const { frameForm } = values
const hasScene = frameForm.scenes?.some(({ id }) => id === sceneId)
Expand Down

0 comments on commit 17ca333

Please sign in to comment.