27 lines
579 B
TypeScript
27 lines
579 B
TypeScript
|
import {Component, OnInit} from '@angular/core';
|
||
|
import {ConfigService} from '../config.service';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'framadate-debugger',
|
||
|
templateUrl: './debugger.component.html',
|
||
|
styleUrls: ['./debugger.component.scss']
|
||
|
})
|
||
|
export class DebuggerComponent implements OnInit {
|
||
|
private formIsValid = true;
|
||
|
|
||
|
constructor(private config: ConfigService) {
|
||
|
}
|
||
|
|
||
|
ngOnInit() {
|
||
|
}
|
||
|
|
||
|
selectOption(key: string, val: any) {
|
||
|
if (!this.config[key]) {
|
||
|
return false;
|
||
|
}
|
||
|
this.config[key] = val;
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
}
|