edit-advanced-configuration.component.ts 496 Bytes
Newer Older
Chocobozzz's avatar
Chocobozzz committed
1
2
3
4
5
6
7
8
9
10
11
import { Component, Input } from '@angular/core'
import { FormGroup } from '@angular/forms'

@Component({
  selector: 'my-edit-advanced-configuration',
  templateUrl: './edit-advanced-configuration.component.html',
  styleUrls: [ './edit-custom-config.component.scss' ]
})
export class EditAdvancedConfigurationComponent {
  @Input() form: FormGroup
  @Input() formErrors: any
Chocobozzz's avatar
Chocobozzz committed
12

13
  getCacheSize (type: 'captions' | 'previews' | 'torrents') {
Chocobozzz's avatar
Chocobozzz committed
14
15
    return this.form.value['cache'][type]['size']
  }
Chocobozzz's avatar
Chocobozzz committed
16
}