Skip to content

Commit

Permalink
Fixed #12270
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Nov 22, 2022
1 parent 305c653 commit 24f3047
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions src/app/components/fileupload/fileupload.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
import { CommonModule } from '@angular/common';
import { HttpClient, HttpEvent, HttpEventType, HttpHeaders } from '@angular/common/http';
import {
NgModule,
AfterContentInit,
AfterViewInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
OnDestroy,
ContentChildren,
ElementRef,
EventEmitter,
Input,
NgModule,
NgZone,
OnDestroy,
OnInit,
Output,
EventEmitter,
TemplateRef,
AfterViewInit,
AfterContentInit,
ContentChildren,
QueryList,
TemplateRef,
ViewChild,
ElementRef,
NgZone,
ChangeDetectionStrategy,
ViewEncapsulation,
ChangeDetectorRef,
OnInit
ViewEncapsulation
} from '@angular/core';
import { CommonModule } from '@angular/common';
import { DomSanitizer } from '@angular/platform-browser';
import { BlockableUI, Message, PrimeNGConfig, PrimeTemplate, SharedModule, TranslationKeys } from 'primeng/api';
import { ButtonModule } from 'primeng/button';
import { DomHandler } from 'primeng/dom';
import { MessagesModule } from 'primeng/messages';
import { ProgressBarModule } from 'primeng/progressbar';
import { DomHandler } from 'primeng/dom';
import { Message, TranslationKeys } from 'primeng/api';
import { PrimeTemplate, SharedModule, PrimeNGConfig } from 'primeng/api';
import { BlockableUI } from 'primeng/api';
import { RippleModule } from 'primeng/ripple';
import { HttpClient, HttpEvent, HttpEventType, HttpHeaders } from '@angular/common/http';
import { Subscription } from 'rxjs';

@Component({
Expand Down Expand Up @@ -92,7 +90,7 @@ import { Subscription } from 'rxjs';
pRipple
>
<span class="p-button-icon p-button-icon-left pi" [ngClass]="hasFiles() && !auto ? uploadIcon : chooseIcon"></span>
<span class="p-button-label">{{ basicButtonLabel }}</span>
<span *ngIf="basicButtonLabel" class="p-button-label">{{ basicButtonLabel }}</span>
<input #basicfileinput type="file" [accept]="accept" [multiple]="multiple" [disabled]="disabled" (change)="onFileSelect($event)" *ngIf="!hasFiles()" (focus)="onFocus()" (blur)="onBlur()" />
</span>
</div>
Expand Down

0 comments on commit 24f3047

Please sign in to comment.