]>
Commit | Line | Data |
---|---|---|
1 | import { Component, Input } from '@angular/core' | |
2 | import { FormGroup } from '@angular/forms' | |
3 | ||
4 | @Component({ | |
5 | selector: 'my-edit-advanced-configuration', | |
6 | templateUrl: './edit-advanced-configuration.component.html', | |
7 | styleUrls: [ './edit-custom-config.component.scss' ] | |
8 | }) | |
9 | export class EditAdvancedConfigurationComponent { | |
10 | @Input() form: FormGroup | |
11 | @Input() formErrors: any | |
12 | ||
13 | getCacheSize (type: 'captions' | 'previews' | 'torrents') { | |
14 | return this.form.value['cache'][type]['size'] | |
15 | } | |
16 | } |