-import { Subject } from 'rxjs'
import { tap } from 'rxjs/operators'
import { Component, ComponentFactoryResolver, OnInit, ViewChild } from '@angular/core'
import { ActivatedRoute, Router } from '@angular/router'
videos: Video[] = []
search: string
+ disabled = false
+
constructor (
protected router: Router,
protected serverService: ServerService,
}
disableForReuse () {
- this.videosSelection.disableForReuse()
+ this.disabled = true
}
enabledForReuse () {
- this.videosSelection.enabledForReuse()
+ this.disabled = false
}
reloadData () {
this.userService.updateMyProfile({ videosHistoryEnabled: this.videosHistoryEnabled })
.subscribe({
next: () => {
- const message = this.videosHistoryEnabled === true ?
- $localize`Videos history is enabled` :
- $localize`Videos history is disabled`
+ const message = this.videosHistoryEnabled === true
+ ? $localize`Videos history is enabled`
+ : $localize`Videos history is disabled`
this.notifier.success(message)