File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
photon-client/src/components/dashboard Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,10 @@ const createNewPipeline = () => {
146146 const type = newPipelineType .value ;
147147 if (type === WebsocketPipelineType .DriverMode || type === WebsocketPipelineType .Calib3d ) return ;
148148 useCameraSettingsStore ().createNewPipeline (newPipelineName .value , type );
149+ useCameraSettingsStore ().changeCurrentPipelineIndex (
150+ useCameraSettingsStore ().pipelineNames .length - 1 ,
151+ true
152+ );
149153 showPipelineCreationDialog .value = false ;
150154};
151155const cancelPipelineCreation = () => {
@@ -205,9 +209,13 @@ const cancelChangePipelineType = () => {
205209 showPipelineTypeChangeDialog .value = false ;
206210};
207211
208- // Pipeline duplication'
212+ // Pipeline duplication
209213const duplicateCurrentPipeline = () => {
210214 useCameraSettingsStore ().duplicatePipeline (useCameraSettingsStore ().currentCameraSettings .currentPipelineIndex );
215+ useCameraSettingsStore ().changeCurrentPipelineIndex (
216+ useCameraSettingsStore ().pipelineNames .length - 1 ,
217+ true
218+ );
211219};
212220
213221// Change Props whenever the pipeline settings are changed
You can’t perform that action at this time.
0 commit comments