27 lines
639 B
TypeScript
27 lines
639 B
TypeScript
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
||
|
import { FileInfo } from '../../models/file-info.json';
|
||
|
import { NGXLogger } from 'ngx-logger';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'ucap-chat-message-box-attach-file',
|
||
|
templateUrl: './attach-file.component.html',
|
||
|
styleUrls: ['./attach-file.component.scss']
|
||
|
})
|
||
|
export class AttachFileComponent implements OnInit {
|
||
|
@Input()
|
||
|
fileInfo: FileInfo;
|
||
|
@Output()
|
||
|
save = new EventEmitter<string>();
|
||
|
|
||
|
constructor(private logger: NGXLogger) {}
|
||
|
|
||
|
ngOnInit() {}
|
||
|
|
||
|
onClickSave() {
|
||
|
this.save.emit('save');
|
||
|
}
|
||
|
onClickSaveAs() {
|
||
|
this.save.emit('saveAs');
|
||
|
}
|
||
|
}
|