Skip to content

Commit 900a6f9

Browse files
committed
fix: upload
1 parent 631ca7c commit 900a6f9

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

frontend/src/angular/src/app/image-query/image-query.component.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@
8989
}
9090
</form>
9191
<div class="horizontal-container">
92+
<button class="my-button"
93+
mat-flat-button
94+
color="primary"
95+
[disabled]="uploading || !result"
96+
(click)="reset()"
97+
i18n="@@reset">
98+
Reset
99+
</button>
92100
<button
93101
class="my-button"
94102
mat-flat-button

frontend/src/angular/src/app/image-query/image-query.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ export class ImageQueryComponent {
111111
);
112112
}
113113

114+
protected reset(): void {
115+
this.result = null;
116+
this.imageForm.controls['file'].reset();
117+
}
118+
114119
protected upload(): void {
115120
//console.log(this.file);
116121
if (!!this.imageForm.controls.file.value) {

0 commit comments

Comments
 (0)