From 36908bcc9e162ecb2339a4cad7ad079c3c7e368e Mon Sep 17 00:00:00 2001 From: Hoang Vu Huy Date: Mon, 11 Nov 2024 15:33:04 +0700 Subject: [PATCH] MARP-1317 Add back to top button MARP-1317 Add back to top button --- .../components/back-to-top/back-to-top.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/marketplace-ui/src/app/shared/components/back-to-top/back-to-top.component.ts b/marketplace-ui/src/app/shared/components/back-to-top/back-to-top.component.ts index b38ed617..3db635b0 100644 --- a/marketplace-ui/src/app/shared/components/back-to-top/back-to-top.component.ts +++ b/marketplace-ui/src/app/shared/components/back-to-top/back-to-top.component.ts @@ -1,5 +1,5 @@ -import { CommonModule, DOCUMENT } from '@angular/common'; -import { Component, HostListener, Inject } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { Component, HostListener } from '@angular/core'; import { TranslateModule } from '@ngx-translate/core'; @Component({ @@ -13,9 +13,9 @@ import { TranslateModule } from '@ngx-translate/core'; styleUrl: './back-to-top.component.scss' }) export class BackToTopComponent { - backToTopShowThreshold: number = 500; + showScrollButton = false; + backToTopShowThreshold = 500; scrollBehavior: ScrollBehavior = 'smooth'; - showScrollButton: boolean = false; @HostListener("window:scroll", []) onWindowScroll() {