File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
ui/src/components/map/stops Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,11 @@ export const EditStopConfirmationDialog: FC<
6565 confirmationTextParts . push ( removedRoutesText ) ;
6666 }
6767
68- const additionalInfo = t ( 'confirmEditStopDialog.additionalInfo' ) ;
69- confirmationTextParts . push ( additionalInfo ) ;
68+ // Only show additional info for move operations
69+ if ( changes . isMove ) {
70+ const additionalInfo = t ( 'confirmEditStopDialog.additionalInfo' ) ;
71+ confirmationTextParts . push ( additionalInfo ) ;
72+ }
7073
7174 return confirmationTextParts . join ( '\n\n' ) ;
7275 } ;
Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ export type EditChanges = {
150150 readonly deleteStopFromJourneyPatternIds ?: ReadonlyArray < UUID > ;
151151 readonly conflicts ?: ReadonlyArray < ScheduledStopPointAllFieldsFragment > ;
152152 readonly quayId : string ;
153+ readonly isMove ?: boolean ;
153154} ;
154155
155156export type BrokenRouteCheckParams = {
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export function useEditStopUtils(
119119 } ,
120120 } ,
121121 } ) ;
122- setEditChanges ( changes ) ;
122+ setEditChanges ( { ... changes , isMove : true } ) ;
123123 } catch ( err ) {
124124 defaultErrorHandler ( err as Error ) ;
125125 } finally {
@@ -175,7 +175,7 @@ export function useEditStopUtils(
175175 } ;
176176
177177 const onCancelEdit = ( ) => {
178- setDisplayedEditor ( MapEntityEditorViewState . POPUP ) ;
178+ setDisplayedEditor ( MapEntityEditorViewState . EDIT ) ;
179179 setEditChanges ( null ) ;
180180 } ;
181181
You can’t perform that action at this time.
0 commit comments