From 9af2b49b7a57d549aaf5a2c5e73ce7ecf32f2238 Mon Sep 17 00:00:00 2001 From: Vincent BENOIT Date: Thu, 1 Dec 2022 11:57:12 +0100 Subject: [PATCH] =?UTF-8?q?suppression=20du=20parametre=20mode=20d'operati?= =?UTF-8?q?on=20de=20la=20page:=20param=C3=A8tres?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/workspace/parametres/parametres.component.ts | 5 +---- src/app/models/parameters.model.ts | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/components/home/workspace/parametres/parametres.component.ts b/src/app/components/home/workspace/parametres/parametres.component.ts index c573542..a68cefc 100644 --- a/src/app/components/home/workspace/parametres/parametres.component.ts +++ b/src/app/components/home/workspace/parametres/parametres.component.ts @@ -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'; diff --git a/src/app/models/parameters.model.ts b/src/app/models/parameters.model.ts index 9620c4b..dd08856 100644 --- a/src/app/models/parameters.model.ts +++ b/src/app/models/parameters.model.ts @@ -1,5 +1,4 @@ export interface Parameters { - operation:string; pin_actif:boolean; code_pin:string; num_autorized:string;