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