diff options
Diffstat (limited to 'src/js-components/skipButtonControlBar.ts')
-rw-r--r-- | src/js-components/skipButtonControlBar.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/js-components/skipButtonControlBar.ts b/src/js-components/skipButtonControlBar.ts index 11bbf1ac..f8b2439f 100644 --- a/src/js-components/skipButtonControlBar.ts +++ b/src/js-components/skipButtonControlBar.ts @@ -1,8 +1,8 @@ import Config from "../config"; import { SponsorTime } from "../types"; import { getSkippingText } from "../utils/categoryUtils"; -import { keybindToString } from "../utils/configUtils"; import { AnimationUtils } from "../utils/animationUtils"; +import { keybindToString } from "../../maze-utils/src/config"; export interface SkipButtonControlBarProps { skip: (segment: SponsorTime) => void; @@ -102,6 +102,7 @@ export class SkipButtonControlBar { this.enabled = true; this.refreshText(); + this.container?.classList?.remove("textDisabled"); this.textContainer?.classList?.remove("hidden"); AnimationUtils.disableAutoHideAnimation(this.skipIcon); @@ -134,7 +135,6 @@ export class SkipButtonControlBar { disable(): void { this.container.classList.add("hidden"); - this.textContainer?.classList?.remove("hidden"); this.chapterText?.classList?.remove("hidden"); this.getChapterPrefix()?.classList?.remove("hidden"); @@ -142,6 +142,10 @@ export class SkipButtonControlBar { this.enabled = false; } + isEnabled(): boolean { + return this.enabled; + } + toggleSkip(): void { this.skip(this.segment); this.disableText(); |