diff --git a/src/app/shared/components/upload-license-profile/upload-license-profile.component.html b/src/app/shared/components/upload-license-profile/upload-license-profile.component.html index bcdb8c676c1576637b665f0392f7df6dc2ea53ae..2e4bcc24b0050b3bf85c9df29558f551960add35 100644 --- a/src/app/shared/components/upload-license-profile/upload-license-profile.component.html +++ b/src/app/shared/components/upload-license-profile/upload-license-profile.component.html @@ -1,5 +1,5 @@ <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>