Skip to content
Snippets Groups Projects
Verified Commit ae8b4ff7 authored by Damien's avatar Damien
Browse files

Merge branch 'develop' of labs.maarch.org:maarch/MaarchCourrier into develop

parents c6b7c26d c480a0cb
No related branches found
No related tags found
No related merge requests found
import { Component, OnInit, Input, ViewChild, EventEmitter, Output } from '@angular/core'; import {Component, OnInit, Input, ViewChild, EventEmitter, Output, ElementRef} from '@angular/core';
import { HttpClient, HttpEventType } from '@angular/common/http'; import { HttpClient, HttpEventType } from '@angular/common/http';
import { LANG } from '../translate.component'; import { LANG } from '../translate.component';
import { NotificationService } from '../notification.service'; import { NotificationService } from '../notification.service';
...@@ -131,6 +131,7 @@ export class DocumentViewerComponent implements OnInit { ...@@ -131,6 +131,7 @@ export class DocumentViewerComponent implements OnInit {
@ViewChild('templateList', { static: true }) templateList: PluginSelectSearchComponent; @ViewChild('templateList', { static: true }) templateList: PluginSelectSearchComponent;
@ViewChild('onlyofficeViewer', { static: false }) onlyofficeViewer: EcplOnlyofficeViewerComponent; @ViewChild('onlyofficeViewer', { static: false }) onlyofficeViewer: EcplOnlyofficeViewerComponent;
@ViewChild('docToUpload', { static: false }) docToUpload: ElementRef<HTMLInputElement>;
constructor( constructor(
public http: HttpClient, public http: HttpClient,
...@@ -442,6 +443,7 @@ export class DocumentViewerComponent implements OnInit { ...@@ -442,6 +443,7 @@ export class DocumentViewerComponent implements OnInit {
content: null, content: null,
src: null src: null
}; };
this.docToUpload.nativeElement.value = "";
this.triggerEvent.emit('cleanFile'); this.triggerEvent.emit('cleanFile');
}), }),
catchError((err: any) => { catchError((err: any) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment