diff --git a/app/src/lib/components/CommitCard.svelte b/app/src/lib/components/CommitCard.svelte index b6ad06933..b743fa0f0 100644 --- a/app/src/lib/components/CommitCard.svelte +++ b/app/src/lib/components/CommitCard.svelte @@ -8,9 +8,9 @@ import Modal from '$lib/components/Modal.svelte'; import Tag from '$lib/components/Tag.svelte'; import { persistedCommitMessage } from '$lib/config/config'; - import { featureAdvancedCommitOperations } from '$lib/config/uiFeatureFlags'; import { draggable } from '$lib/dragging/draggable'; import { DraggableCommit, nonDraggable } from '$lib/dragging/draggables'; + import { copyToClipboard } from '$lib/utils/clipboard'; import { getContext, getContextStore } from '$lib/utils/context'; import { getTimeAgo } from '$lib/utils/timeAgo'; import { openExternalUrl } from '$lib/utils/url'; @@ -40,7 +40,6 @@ const branchController = getContext(BranchController); const baseBranch = getContextStore(BaseBranch); const project = getContext(Project); - const advancedCommitOperations = featureAdvancedCommitOperations(); const commitStore = createCommitStore(commit); $: commitStore.set(commit); @@ -93,13 +92,8 @@ branchController.reorderCommit(branch.id, commit.id, offset); } - let isUndoable = false; + let isUndoable = !!branch?.active && commit instanceof Commit; - $: if ($advancedCommitOperations) { - isUndoable = !!branch?.active && commit instanceof Commit; - } else { - isUndoable = isHeadCommit; - } const hasCommitUrl = !commit.isLocal && commitUrl; let commitMessageModal: Modal; @@ -197,29 +191,29 @@ {commit.descriptionTitle} - {#if $advancedCommitOperations} -