Spaces:
Running
Running
Update flare-ui/src/app/components/chat/chat.component.html
Browse files
flare-ui/src/app/components/chat/chat.component.html
CHANGED
@@ -21,23 +21,25 @@
|
|
21 |
</div>
|
22 |
</div>
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
</
|
42 |
-
</
|
|
|
|
|
43 |
</mat-card>
|
|
|
21 |
</div>
|
22 |
</div>
|
23 |
|
24 |
+
<!-- ... önceki kod aynı ... -->
|
25 |
+
|
26 |
+
<form (ngSubmit)="send()" class="input-row">
|
27 |
+
<mat-form-field appearance="outline" class="flex-1">
|
28 |
+
<input
|
29 |
+
matInput
|
30 |
+
placeholder="Type your message…"
|
31 |
+
[formControl]="input" <!-- ← burada formControl -->
|
32 |
+
autocomplete="off"
|
33 |
+
/>
|
34 |
+
</mat-form-field>
|
35 |
+
|
36 |
+
<button
|
37 |
+
mat-icon-button
|
38 |
+
color="primary"
|
39 |
+
type="submit"
|
40 |
+
[disabled]="input.invalid">
|
41 |
+
<mat-icon>send</mat-icon>
|
42 |
+
</button>
|
43 |
+
</form>
|
44 |
+
|
45 |
</mat-card>
|