suppression du parametre mode d'operation de la page: paramètres

This commit is contained in:
Vincent BENOIT
2022-12-01 11:57:12 +01:00
parent b20e9bf059
commit 9af2b49b7a
2 changed files with 1 additions and 5 deletions

View File

@@ -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';

View File

@@ -1,5 +1,4 @@
export interface Parameters {
operation:string;
pin_actif:boolean;
code_pin:string;
num_autorized:string;