Skip to content

Commit 7690bbd

Browse files
committed
code refractoring in settings page
1 parent 64d544c commit 7690bbd

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,11 @@
11
<mat-card fxLayout="column">
22

33
<form [formGroup]="config_form" (submit)="save_config()">
4+
<h3>Tune ML</h3>
45
<mat-slider min="0.1" max="1.0" step="0.05" formControlName="confidence_threshold" (change)="threshold_value_changed()"></mat-slider>
56
Intent Detection threshold = <b>{{config_form.value.confidence_threshold | percent}}</b>
67
<br>
7-
</form>
8-
9-
<br>
10-
<div fxLayout="row" fxLayoutAlign="space-between center" >
11-
<div class="import-group" fxLayout="row" fxLayoutAlign=" center">
12-
<div fxFlex>
13-
<input type="file"
14-
id="file"
15-
(change)="handleFileInput($event.target.files)">
16-
</div>
17-
<div fxLayoutAlign="end" > <button mat-raised-button (click)="uploadFileToActivity()" [disabled]="!fileToUpload">Import stories</button></div>
18-
</div>
19-
<button mat-raised-button (click)="export()" color="primary">Export stories</button>
20-
</div>
21-
22-
8+
</form>
239
<div class="code-snippet">
2410
<h3>Chat Widget</h3>
2511
<p>Copy and paste the below snippet into your HTML code.</p>
@@ -32,4 +18,18 @@ <h3>Chat Widget</h3>
3218
</p>
3319

3420
</div>
21+
22+
<h3>Import/Export Intents</h3>
23+
<div fxLayout="row" fxLayoutAlign="space-between center" >
24+
25+
<div class="import-group" fxLayout="row" fxLayoutAlign=" center">
26+
<div fxFlex>
27+
<input type="file"
28+
id="file"
29+
(change)="handleFileInput($event.target.files)">
30+
</div>
31+
<div fxLayoutAlign="end" > <button mat-raised-button (click)="uploadFileToActivity()" [disabled]="!fileToUpload">Import Intents</button></div>
32+
</div>
33+
<button mat-raised-button (click)="export()" color="primary">Export Intents</button>
34+
</div>
3535
</mat-card>

0 commit comments

Comments
 (0)