From b6f931dae786fac469861f9c784c0d7214a5f811 Mon Sep 17 00:00:00 2001 From: Aaron Klinker Date: Tue, 29 Mar 2022 16:13:01 -0500 Subject: [PATCH] fix(player): don't show skip button while editing --- .../src/content-scripts/player/components/SkipButton.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/web-extension/src/content-scripts/player/components/SkipButton.vue b/packages/web-extension/src/content-scripts/player/components/SkipButton.vue index 22935ded..c388ca19 100644 --- a/packages/web-extension/src/content-scripts/player/components/SkipButton.vue +++ b/packages/web-extension/src/content-scripts/player/components/SkipButton.vue @@ -15,6 +15,7 @@ import { TIMESTAMP_TYPES } from '~/common/utils/constants'; import Utils from '~/common/utils/GeneralUtils'; import { useDisplayedTimestamps } from '../hooks/useDisplayedTimestamps'; import { useIsToolbarVisible } from '../hooks/useIsToolbarVisible'; +import { useIsEditing } from '../state/useEditingState'; import { useDuration, useVideoController, useVideoState } from '../state/useVideoState'; const SKIP_BUTTON_OFFSET = 0.1; @@ -51,12 +52,14 @@ const currentTimeStampIsSkipped = computed( // Show / Skip +const isEditing = useIsEditing(); const showSkipButton = computed( () => isToolbarVisible.value && currentTimeStampIsSkipped.value && !preferences.value.enableAutoSkip && !isVideoOver.value && + !isEditing.value && currentTimestampTitle.value ); watch(currentTimeStampIsSkipped, newIsSkipped => {