mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 14:31:30 +03:00
reload after restoring a snapshot
This commit is contained in:
parent
eda9651bf9
commit
d792d4fee9
@ -126,6 +126,9 @@
|
|||||||
isCurrent={idx == 0}
|
isCurrent={idx == 0}
|
||||||
on:restoreClick={() => {
|
on:restoreClick={() => {
|
||||||
historyService.restoreSnapshot(project.id, entry.id);
|
historyService.restoreSnapshot(project.id, entry.id);
|
||||||
|
// In some cases, restoring the snapshot doesnt update the UI correctly
|
||||||
|
// Until we have that figured out, we need to reload the page.
|
||||||
|
location.reload();
|
||||||
}}
|
}}
|
||||||
{selectedFile}
|
{selectedFile}
|
||||||
on:diffClick={async (filePath) => {
|
on:diffClick={async (filePath) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user