suppression du parametre mode d'operation de la page: paramètres
This commit is contained in:
@@ -18,7 +18,6 @@ export class ParametresComponent implements OnInit {
|
||||
pinChecked:boolean=false;
|
||||
pinNumber:string="0000";
|
||||
isProcessing:boolean = true;
|
||||
defaultOp:string = 'Manuel ON';
|
||||
|
||||
constructor(private fb:FormBuilder,
|
||||
private bs:BackendService,
|
||||
@@ -51,7 +50,6 @@ export class ParametresComponent implements OnInit {
|
||||
this.paramsFG.get('num_tone').setValue(data.tone_duration);
|
||||
this.paramsFG.get('dtmf_code').setValue(data.dtmf_code);
|
||||
this.paramsFG.get('dtmf_duration').setValue(data.dtmf_duration);
|
||||
this.defaultOp = data.operation;
|
||||
this.slideDisable = data.pin_actif;
|
||||
this.pinChecked = data.pin_actif;
|
||||
this.pinNumber = data.code_pin;
|
||||
@@ -86,14 +84,13 @@ export class ParametresComponent implements OnInit {
|
||||
return;
|
||||
}
|
||||
|
||||
let params:Parameters = {operation:'',
|
||||
let params:Parameters = {
|
||||
pin_actif:false,
|
||||
code_pin:'',
|
||||
num_autorized:'',
|
||||
tone_duration:0,
|
||||
dtmf_code:'',
|
||||
dtmf_duration:0};
|
||||
params.operation = this.defaultOp;
|
||||
params.pin_actif = this.pinChecked;
|
||||
if (this.pinChecked == false) {
|
||||
params.code_pin = '0000';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
export interface Parameters {
|
||||
operation:string;
|
||||
pin_actif:boolean;
|
||||
code_pin:string;
|
||||
num_autorized:string;
|
||||
|
||||
Reference in New Issue
Block a user