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;
|
pinChecked:boolean=false;
|
||||||
pinNumber:string="0000";
|
pinNumber:string="0000";
|
||||||
isProcessing:boolean = true;
|
isProcessing:boolean = true;
|
||||||
defaultOp:string = 'Manuel ON';
|
|
||||||
|
|
||||||
constructor(private fb:FormBuilder,
|
constructor(private fb:FormBuilder,
|
||||||
private bs:BackendService,
|
private bs:BackendService,
|
||||||
@@ -51,7 +50,6 @@ export class ParametresComponent implements OnInit {
|
|||||||
this.paramsFG.get('num_tone').setValue(data.tone_duration);
|
this.paramsFG.get('num_tone').setValue(data.tone_duration);
|
||||||
this.paramsFG.get('dtmf_code').setValue(data.dtmf_code);
|
this.paramsFG.get('dtmf_code').setValue(data.dtmf_code);
|
||||||
this.paramsFG.get('dtmf_duration').setValue(data.dtmf_duration);
|
this.paramsFG.get('dtmf_duration').setValue(data.dtmf_duration);
|
||||||
this.defaultOp = data.operation;
|
|
||||||
this.slideDisable = data.pin_actif;
|
this.slideDisable = data.pin_actif;
|
||||||
this.pinChecked = data.pin_actif;
|
this.pinChecked = data.pin_actif;
|
||||||
this.pinNumber = data.code_pin;
|
this.pinNumber = data.code_pin;
|
||||||
@@ -86,14 +84,13 @@ export class ParametresComponent implements OnInit {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let params:Parameters = {operation:'',
|
let params:Parameters = {
|
||||||
pin_actif:false,
|
pin_actif:false,
|
||||||
code_pin:'',
|
code_pin:'',
|
||||||
num_autorized:'',
|
num_autorized:'',
|
||||||
tone_duration:0,
|
tone_duration:0,
|
||||||
dtmf_code:'',
|
dtmf_code:'',
|
||||||
dtmf_duration:0};
|
dtmf_duration:0};
|
||||||
params.operation = this.defaultOp;
|
|
||||||
params.pin_actif = this.pinChecked;
|
params.pin_actif = this.pinChecked;
|
||||||
if (this.pinChecked == false) {
|
if (this.pinChecked == false) {
|
||||||
params.code_pin = '0000';
|
params.code_pin = '0000';
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
export interface Parameters {
|
export interface Parameters {
|
||||||
operation:string;
|
|
||||||
pin_actif:boolean;
|
pin_actif:boolean;
|
||||||
code_pin:string;
|
code_pin:string;
|
||||||
num_autorized:string;
|
num_autorized:string;
|
||||||
|
|||||||
Reference in New Issue
Block a user