diff --git a/package-lock.json b/package-lock.json index f924bc8cd..0356fc6d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10584,9 +10584,9 @@ } }, "cordova-plugin-camera": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/cordova-plugin-camera/-/cordova-plugin-camera-5.0.1.tgz", - "integrity": "sha512-9gXyZvI8u9KzsZuqmB8Yw+uheF+7f+usMAwvOMw7L7pqbykg+bm9US5zjhJbwit3A1cSblgZkpBafe5cFiMcTA==" + "version": "git+https://github.com/PieterVanPoyer/cordova-plugin-camera.git#3911ae8a5a7a21a7bef8c80acd7dc4bb65a2163a", + "from": "git+https://github.com/PieterVanPoyer/cordova-plugin-camera.git#bugfix/issue-665-save-instance-restore-bug", + "dev": true }, "cordova-plugin-compat": { "version": "1.2.0", diff --git a/package.json b/package.json index 156e8d886..8e99fe4b8 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,6 @@ "build": "0.1.4", "ci": "^2.1.1", "cordova": "^10.0.0", - "cordova-plugin-camera": "^5.0.1", "cordova-plugin-filepath": "^1.5.8", "cordova-plugin-okhttp": "^2.0.0", "cordova-res": "^0.15.3", @@ -125,6 +124,7 @@ "cordova-ios": "^6.2.0", "cordova-plugin-androidx": "^3.0.0", "cordova-plugin-androidx-adapter": "^1.1.3", + "cordova-plugin-camera": "git+https://github.com/PieterVanPoyer/cordova-plugin-camera.git#bugfix/issue-665-save-instance-restore-bug", "cordova-plugin-compat": "^1.2.0", "cordova-plugin-device": "^2.0.2", "cordova-plugin-dialogs": "^2.0.2", @@ -165,9 +165,6 @@ "cordova-plugin-splashscreen": {}, "cordova-plugin-ionic-keyboard": {}, "cordova-plugin-inappbrowser": {}, - "cordova-plugin-camera": { - "ANDROID_SUPPORT_V4_VERSION": "27.+" - }, "cordova-sqlite-storage": {}, "cordova-plugin-compat": {}, "cordova-plugin-mfp": {}, @@ -178,7 +175,10 @@ "cordova-plugin-mfp-jsonstore": {}, "cordova-plugin-ionic-webview": {}, "cordova-plugin-screen-orientation": {}, - "cordova-plugin-network-information": {} + "cordova-plugin-network-information": {}, + "cordova-plugin-camera": { + "ANDROID_SUPPORT_V4_VERSION": "27.+" + } }, "platforms": [ "browser", diff --git a/src/app/pages/gabinete-digital/discart-expedient-modal/discart-expedient-modal.page.ts b/src/app/pages/gabinete-digital/discart-expedient-modal/discart-expedient-modal.page.ts index 803ddd2aa..936b0f32e 100644 --- a/src/app/pages/gabinete-digital/discart-expedient-modal/discart-expedient-modal.page.ts +++ b/src/app/pages/gabinete-digital/discart-expedient-modal/discart-expedient-modal.page.ts @@ -1,7 +1,5 @@ import { Component, OnInit } from '@angular/core'; -import { Router } from '@angular/router'; -import { ModalController, NavParams } from '@ionic/angular'; -import { ProcessesService } from 'src/app/services/processes.service'; +import { ModalController } from '@ionic/angular'; @Component({ selector: 'app-discart-expedient-modal', @@ -9,23 +7,22 @@ import { ProcessesService } from 'src/app/services/processes.service'; styleUrls: ['./discart-expedient-modal.page.scss'], }) export class DiscartExpedientModalPage implements OnInit { + serialNumber:string; folderId:string; action:string; + constructor( - private modalController: ModalController, - private processes:ProcessesService, - private router:Router, - ) { - } + private modalController: ModalController + ) { } - ngOnInit() { - } - close(){ + ngOnInit() {} + + close() { this.modalController.dismiss('No'); } - save(){ + save() { this.modalController.dismiss('Yes'); }