Skip to content

Conversation

MacPiaf
Copy link
Contributor

@MacPiaf MacPiaf commented Apr 17, 2018

Switch from Classic mode to DiffView (back and forth) based on 'merge' prop status. History, value and cleanGeneration are preserved.
User has to provide orig(Right) or origLeft and set 'merge' to true (has you would do in a statically initialized DiffView instance)

So far, 'merge' prop is only used at initialization and there is no watcher.

Idea came from the need in one of our project to examine patches while editing (thus switching from classic editor to merge view)

Switch from Editor mode to DiffView based on 'merge' prop status. History, value and cleanGeneration are preserved.
@surmon-china surmon-china merged commit be05ec3 into surmon-china:master Apr 17, 2018
@surmon-china
Copy link
Owner

Update to v4.0.5 please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants