Added sample details UI to upload

This commit is contained in:
2024-02-16 14:41:29 +01:00
parent dbc72a3dc4
commit 6b322825cd
2 changed files with 52 additions and 7 deletions

View File

@ -1,5 +1,5 @@
import {Component, ElementRef, ViewChild} from '@angular/core';
import {DecimalPipe, NgIf} from "@angular/common";
import {DecimalPipe, NgClass, NgIf} from "@angular/common";
import {FormatFileSizePipePipe} from "../format-file-size-pipe.pipe";
import {FormsModule} from "@angular/forms";
import axios, {AxiosProgressEvent} from "axios";
@ -12,7 +12,8 @@ import { DevelopmentStore } from '../../store/DevelopmentStore';
NgIf,
FormatFileSizePipePipe,
FormsModule,
DecimalPipe
DecimalPipe,
NgClass
],
templateUrl: './upload.component.html',
styleUrl: './upload.component.scss'
@ -96,6 +97,7 @@ export class UploadComponent {
axios.post(this.developmentStore.getBaseUrl() + 'api/v1/upload', formData, config)
.then(response => {
console.log('Upload completed successfully:', response.data);
console.log(response.data);
this.uploadFinished = true;
})
.catch(error => {