Commit 93126750 authored by El Mghazli Yacine's avatar El Mghazli Yacine

details

parent dac3bc1a
...@@ -75,13 +75,12 @@ export class CommandsComponent { ...@@ -75,13 +75,12 @@ export class CommandsComponent {
onSubVarSubmit(control: VarCtrl) { onSubVarSubmit(control: VarCtrl) {
this.commandsApi.setVariable$(control.api(), `${this.selectedModule!.nameFC.value}`) this.commandsApi.setVariable$(control.api(), `${this.selectedModule!.nameFC.value}`)
.pipe( .pipe(
map(array => this.success('setVariable ' + control.nameFC.value + ' OK', array[0])) map(resp => this.success('setVariable ' + control.nameFC.value + ' OK', resp[0]))
).subscribe(); ).subscribe();
} }
onCmdSubmit(control: CmdCtrl) { onCmdSubmit(control: CmdCtrl) {
this.commandsApi.runCommand$(control.api(), `${this.selectedModule!.nameFC.value}`).pipe( this.commandsApi.runCommand$(control.api(), `${this.selectedModule!.nameFC.value}`).pipe(
// map(array => this.success('runCommand ' + control.nameFC.value + ' OK', "&nbsp" + array.join("&nbsp</p><p>&nbsp") + "&nbsp"))
map(resp => this.success('runCommand ' + control.nameFC.value + ' OK', resp.display!.join("</p><p>"))) map(resp => this.success('runCommand ' + control.nameFC.value + ' OK', resp.display!.join("</p><p>")))
).subscribe(); ).subscribe();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment