We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 631ca7c commit 900a6f9Copy full SHA for 900a6f9
2 files changed
frontend/src/angular/src/app/image-query/image-query.component.html
@@ -89,6 +89,14 @@
89
}
90
</form>
91
<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>
100
<button
101
class="my-button"
102
mat-flat-button
frontend/src/angular/src/app/image-query/image-query.component.ts
@@ -111,6 +111,11 @@ export class ImageQueryComponent {
111
);
112
113
114
+ protected reset(): void {
115
+ this.result = null;
116
+ this.imageForm.controls['file'].reset();
117
+ }
118
+
119
protected upload(): void {
120
//console.log(this.file);
121
if (!!this.imageForm.controls.file.value) {
0 commit comments