Skip to content
Snippets Groups Projects
Commit d83e7a89 authored by Kawtar Laariche's avatar Kawtar Laariche
Browse files

#22: :bug: fix upload file issue

parent ceec53cb
No related branches found
No related tags found
No related merge requests found
<div class="dialog-header"> <div class="dialog-header">
<h2 mat-dialog-title>{{title}}</h2> <h2 mat-dialog-title>{{ title }}</h2>
<button <button
type="button" type="button"
mat-icon-button mat-icon-button
...@@ -18,12 +18,11 @@ ...@@ -18,12 +18,11 @@
<div style="display: flex; flex-direction: column; align-items: center"> <div style="display: flex; flex-direction: column; align-items: center">
<div class="destext">Drag & Drop your file here!</div> <div class="destext">Drag & Drop your file here!</div>
<div class="destext">or</div> <div class="destext">or</div>
<!--(click)="fileDropRef.click()"-->
<button <button
color="primary" color="primary"
style="border-radius: 21.5px; width: 183px" style="border-radius: 21.5px; width: 183px"
mat-raised-button mat-raised-button
(click)="fileDropRef.click()"
> >
<input <input
#fileDropRef #fileDropRef
...@@ -59,7 +58,6 @@ ...@@ -59,7 +58,6 @@
></mat-progress-bar> ></mat-progress-bar>
</div> </div>
<div <div
style=" style="
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -82,14 +80,19 @@ ...@@ -82,14 +80,19 @@
<div *ngIf="file && file.size / 1024 / 1024 > 1"> <div *ngIf="file && file.size / 1024 / 1024 > 1">
<span>License file should be max size of 1MB.</span> <span>License file should be max size of 1MB.</span>
</div> </div>
<small>{{supportedFileText}}</small> <small>{{ supportedFileText }}</small>
<div class="upload-error"> <div class="upload-error">
<small *ngIf="modelUploadError"> <small *ngIf="modelUploadError">
<strong *ngIf="errorMessage" <strong *ngIf="errorMessage">{{ errorMessage }}</strong>
>{{errorMessage}}</strong <dl
*ngIf="
!(
modelUploadErrorMsg.length === 1 &&
modelUploadErrorMsg[0] === errorMessage
)
"
> >
<dl *ngIf="!(modelUploadErrorMsg.length === 1 && modelUploadErrorMsg[0] === errorMessage )">
<li *ngFor="let error of modelUploadErrorMsg">{{ error }}</li> <li *ngFor="let error of modelUploadErrorMsg">{{ error }}</li>
</dl> </dl>
</small> </small>
......
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