feat: show branch switching confirmation modal if changes detected
Description
Issue: [UX Polish] Only show branch switching confirma... (#109 - closed)
Use source control status to detect any changes. If there are no changes detected, the RELOAD_COMMAND_ID command will be executed instead of RELOAD_WITH_WARNING_COMMAND_ID.
Demo:
|
No changes detected |
Changes detected |
|---|---|
|
Does not show warning modal when switching to existing branch |
Show warning modal when switching to existing branch |
|
Does not show warning modal when switching to new branch |
Show warning modal when switching to new branch |
Edited by Cindy Halim