Added sample details UI to upload
This commit is contained in:
@ -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 => {
|
||||
|
Reference in New Issue
Block a user