28 lines
571 B
TypeScript
28 lines
571 B
TypeScript
import {Component} from '@angular/core';
|
|
import {FormsModule} from '@angular/forms';
|
|
|
|
@Component({
|
|
selector: 'sae-translate-texts',
|
|
standalone: true,
|
|
imports: [FormsModule],
|
|
templateUrl: './translate-texts.html',
|
|
styleUrl: './translate-texts.scss'
|
|
})
|
|
export class TranslateTexts {
|
|
public fromText: string = ''
|
|
public toText: 'fromText' | 'toText' | '' = ''
|
|
|
|
emptyText(someText: 'fromText' | 'toText') {
|
|
this[someText] = '';
|
|
}
|
|
|
|
onFileSelected($event: Event) {
|
|
|
|
}
|
|
|
|
clickFileUpload(fileUpload: HTMLInputElement) {
|
|
|
|
fileUpload.click();
|
|
|
|
}
|
|
}
|