Skip to content
Snippets Groups Projects
Commit 1cc8dc05 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #14127 TIME 0:10 fix build

parent a6928d33
No related branches found
No related tags found
No related merge requests found
...@@ -13,10 +13,9 @@ import { ConfirmComponent } from '../../../plugins/modal/confirm.component'; ...@@ -13,10 +13,9 @@ import { ConfirmComponent } from '../../../plugins/modal/confirm.component';
import { FunctionsService } from '@service/functions.service'; import { FunctionsService } from '@service/functions.service';
import { ContactService } from '@service/contact.service'; import { ContactService } from '@service/contact.service';
import { ContactAutocompleteComponent } from '../../contact/autocomplete/contact-autocomplete.component'; import { ContactAutocompleteComponent } from '../../contact/autocomplete/contact-autocomplete.component';
import {element} from "protractor";
@Component({ @Component({
templateUrl: "attachment-create.component.html", templateUrl: 'attachment-create.component.html',
styleUrls: [ styleUrls: [
'attachment-create.component.scss', 'attachment-create.component.scss',
'../../indexation/indexing-form/indexing-form.component.scss' '../../indexation/indexing-form/indexing-form.component.scss'
...@@ -26,7 +25,6 @@ import {element} from "protractor"; ...@@ -26,7 +25,6 @@ import {element} from "protractor";
export class AttachmentCreateComponent implements OnInit { export class AttachmentCreateComponent implements OnInit {
loading: boolean = true; loading: boolean = true;
...@@ -46,7 +44,7 @@ export class AttachmentCreateComponent implements OnInit { ...@@ -46,7 +44,7 @@ export class AttachmentCreateComponent implements OnInit {
// To catch previous index to update file // To catch previous index to update file
asyncIndexTab: number = 0; asyncIndexTab: number = 0;
indexTab: number = 0; indexTab: number = 0;
resourceSubject: string = ''; resourceSubject: string = '';
...@@ -72,7 +70,7 @@ export class AttachmentCreateComponent implements OnInit { ...@@ -72,7 +70,7 @@ export class AttachmentCreateComponent implements OnInit {
private sortPipe: SortPipe, private sortPipe: SortPipe,
public dialog: MatDialog, public dialog: MatDialog,
public functions: FunctionsService, public functions: FunctionsService,
private contactService: ContactService, ) { private contactService: ContactService,) {
} }
async ngOnInit(): Promise<void> { async ngOnInit(): Promise<void> {
...@@ -413,7 +411,7 @@ export class AttachmentCreateComponent implements OnInit { ...@@ -413,7 +411,7 @@ export class AttachmentCreateComponent implements OnInit {
} }
updateFile(index: number) { updateFile(index: number) {
if (this.functions.empty(this.attachments[this.asyncIndexTab].encodedFile.value)) { if (this.functions.empty(this.attachments[this.asyncIndexTab].encodedFile.value)) {
this.appDocumentViewer.toArray()[this.asyncIndexTab].getFile().pipe( this.appDocumentViewer.toArray()[this.asyncIndexTab].getFile().pipe(
take(1), take(1),
tap((data) => { tap((data) => {
......
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