ngx-scandoc 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2596,15 +2596,7 @@ class ScanComponent extends BaseComponent {
2596
2596
  // this.manualMode(type);
2597
2597
  // });
2598
2598
  if (!this.scanSecondSide) {
2599
- if (this.scanProvider.config.showManualMode) {
2600
- this.promptManual = true;
2601
- }
2602
- else {
2603
- this.actions.emit({
2604
- type: 'manualMode',
2605
- data: {},
2606
- });
2607
- }
2599
+ this.promptManual = true;
2608
2600
  // MANUAL_INTERVAL += 10;
2609
2601
  }
2610
2602
  // this.verificationErrorSent = false;
@@ -2976,7 +2968,15 @@ class ScanComponent extends BaseComponent {
2976
2968
  }
2977
2969
  manualSet(key) {
2978
2970
  if (key) {
2979
- this.manualMode();
2971
+ if (this.scanProvider.config.showManualMode) {
2972
+ this.manualMode();
2973
+ }
2974
+ else {
2975
+ this.actions.emit({
2976
+ type: 'manualMode',
2977
+ data: {},
2978
+ });
2979
+ }
2980
2980
  }
2981
2981
  else {
2982
2982
  this.promptManual = false;
@@ -3822,6 +3822,9 @@ class ScanProfileComponent extends BaseComponent {
3822
3822
  }
3823
3823
  actions(event) {
3824
3824
  switch (event.type) {
3825
+ case 'manualMode':
3826
+ this.dialogRef?.close({ manual: true });
3827
+ break;
3825
3828
  case 'scanDataClose':
3826
3829
  this.dialogRef?.close(event.data);
3827
3830
  break;