mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 23:02:31 +03:00
Change metric for "undoable"
We have two types of commits "RemoteCommit" and "Commit". "RemoteCommit" are what we see in the "Upstream" section, and in branches. These commits can't be undone. Commits of type "Commit" appear in the "Local" and "Remote" sections and are undoable
This commit is contained in:
parent
601d6ba809
commit
fe30db9760
@ -86,7 +86,13 @@
|
|||||||
branchController.reorderCommit(branch.id, commit.id, offset);
|
branchController.reorderCommit(branch.id, commit.id, offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
$: isUndoable = isHeadCommit;
|
let isUndoable = false;
|
||||||
|
|
||||||
|
$: if ($advancedCommitOperations) {
|
||||||
|
isUndoable = !!branch?.active && commit instanceof Commit;
|
||||||
|
} else {
|
||||||
|
isUndoable = isHeadCommit;
|
||||||
|
}
|
||||||
const hasCommitUrl = !commit.isLocal && commitUrl;
|
const hasCommitUrl = !commit.isLocal && commitUrl;
|
||||||
|
|
||||||
let commitMessageModal: Modal;
|
let commitMessageModal: Modal;
|
||||||
|
Loading…
Reference in New Issue
Block a user