-
Notifications
You must be signed in to change notification settings - Fork 4
Fix line name modification + rework LineModification dialog #3260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix line name modification + rework LineModification dialog #3260
Conversation
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
src/components/dialogs/network-modifications/line/modification/line-modification-dialog.tsx
Outdated
Show resolved
Hide resolved
src/components/dialogs/network-modifications/line/modification/line-modification-type.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the naming as requested.
But you are talking about other extra things (uuid, and some null and udnefined behavior) while also asking for less changes in the discussion. Can you say clearly if you want me to change those things or only change the bare minimum for the bug correction ? (and let the other errors here)
Maybe I should also remove the renaming BTW, because it is not needed either ?
Simplified version with only the bug correction : #3279
(typescript complains like expected)
src/components/dialogs/network-modifications/line/modification/line-modification-dialog.tsx
Outdated
Show resolved
Hide resolved
src/components/dialogs/network-modifications/line/modification/line-modification-type.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
modificationUuid: editData?.uuid ?? '', | ||
lineId: selectedId, | ||
lineName: sanitizeString(line[EQUIPMENT_NAME]?.value) ?? '', | ||
equipmentName: toModificationOperation(sanitizeString(line[EQUIPMENT_NAME]) ?? ''), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
equipmentName: toModificationOperation(sanitizeString(line[EQUIPMENT_NAME]) ?? ''), | |
lineName: toModificationOperation(sanitizeString(line[EQUIPMENT_NAME]) ?? ''), |
To be more homogeneous with the other modifications ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK done. But I had to put it back into LineModificationInfos
. And I saw it only in LineCreationInfo
: 1289927
modificationUuid, | ||
lineId, | ||
lineName, | ||
equipmentName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And revert this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep done.
|
||
export interface LineModificationEditData { | ||
uuid?: string; | ||
export interface LineModificationDialogForm { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export interface LineModificationDialogForm { | |
export interface LineModificationFormInfos { |
This nomenclature looks more used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK done.
Tests ok |
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
Signed-off-by: Mathieu DEHARBE <mathieu.deharbe@rte-france.com>
|
No description provided.