import { CustomModalComponent } from '@app/modal/custom-modal.component'
import { InstanceConfigWarningModalComponent } from '@app/modal/instance-config-warning-modal.component'
import { WelcomeModalComponent } from '@app/modal/welcome-modal.component'
-import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
+import { NgbConfig, NgbModal } from '@ng-bootstrap/ng-bootstrap'
import { peertubeLocalStorage } from '@root-helpers/peertube-web-storage'
import { getShortLocale, is18nPath } from '@shared/core-utils/i18n'
import { BroadcastMessageLevel, ServerConfig, UserRole } from '@shared/models'
private location: PlatformLocation,
private modalService: NgbModal,
private markdownService: MarkdownService,
+ private ngbConfig: NgbConfig,
public menu: MenuService
- ) { }
+ ) {
+ this.ngbConfig.animation = false
+ }
get instanceName () {
return this.serverConfig.instance.name
// scrollToAnchor first to preserve anchor position when using history navigation
if (e.anchor) {
setTimeout(() => {
- document.getElementById(e.anchor).scrollIntoView({ behavior: 'smooth', inline: 'nearest' })
+ this.viewportScroller.scrollToAnchor(e.anchor)
})
return