-
Notifications
You must be signed in to change notification settings - Fork 176
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
#4575 - New Sequences are created while we add cyclic to middle of sequence. #4703
#4575 - New Sequences are created while we add cyclic to middle of sequence. #4703
Conversation
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.
Some minor comments, no critical, can be addressed later to avoid blocking into upcoming release. Overall looks good to me
@@ -883,6 +941,14 @@ export class SequenceMode extends BaseMode { | |||
return modelChanges; | |||
} | |||
|
|||
private showMergeWarningModal(editor: CoreEditor) { |
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 think it's rather an error than a warning message (which I covered by a pop-up in the bottom of the editor but doesn't block it)
); | ||
} | ||
if (isPasteInStart) { | ||
return this.isR2Free(lastNodeOfNewFragment) && this.isR1Free(currentNode); |
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.
If you need to check both R1 and R2 when pasting into start or end of sequence, you may probably use areR1R2Free
here rather than separate functions
Check list
#1234 – issue name