Skip to content

Commit 24798ab

Browse files
SishhhhSnehasish
authored andcommitted
resolving the bulk reciept upload by adding the bulkfyle input (#3247)
Co-authored-by: Snehasish <[email protected]>
1 parent aac7a7c commit 24798ab

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

src/app/shared/components/capture-receipt/camera-preview/camera-preview.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
{{ isBulkMode ? 'Bulk Mode' : 'Single Mode' }}
6969
</div>
7070
</div>
71-
<div class="camera-preview__bottom-container__icon-block text-center">
71+
<div *ngIf="allowBulkFyle" class="camera-preview__bottom-container__icon-block text-center">
7272
<ng-container *ngIf="noOfReceipts === 0; else receiptPreviewIcon">
7373
<div (click)="onSwitchMode()">
7474
<img

src/app/shared/components/capture-receipt/camera-preview/camera-preview.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export class CameraPreviewComponent implements OnInit, OnChanges {
1818

1919
@Input() allowGalleryUploads = true;
2020

21+
@Input() allowBulkFyle = true;
22+
2123
@Input() lastCapturedReceipt: string;
2224

2325
@Input() noOfReceipts = 0;

src/app/shared/components/capture-receipt/capture-receipt.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[isBulkMode]="isBulkMode"
44
[isOffline]="isOffline$ | async"
55
[allowGalleryUploads]="allowGalleryUploads"
6+
[allowBulkFyle]="allowBulkFyle"
67
[lastCapturedReceipt]="lastCapturedReceipt"
78
[noOfReceipts]="noOfReceipts"
89
[isBulkModePromptShown]="isBulkModePromptShown"

src/app/shared/components/capture-receipt/capture-receipt.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export class CaptureReceiptComponent implements OnInit, OnDestroy, AfterViewInit
4343

4444
@Input() allowGalleryUploads = true;
4545

46+
@Input() allowBulkFyle = true;
47+
4648
isBulkMode: boolean;
4749

4850
noOfReceipts = 0;

0 commit comments

Comments
 (0)