remove reject of the headets

This commit is contained in:
Eudes Inácio
2023-10-25 09:08:49 +01:00
parent f92cdc5816
commit 97d86455cf
17 changed files with 108 additions and 71 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ export class ChatPage implements OnInit {
public RouteService: RouteService,
) {
this.headers = new HttpHeaders({'rejectUnauthorized': environment.rejectUnauthorized });;
this.headers = new HttpHeaders();;
window.onresize = (event) => {
if (window.innerWidth > 701) {
this.modalController.dismiss();
@@ -86,6 +86,7 @@ export class NewPublicationPage implements OnInit {
imgResultBeforeCompress: string;
imgResultAfterCompress: string;
convertBlobToBase64Worker;
intent: any;
constructor(
private modalController: ModalController,
@@ -107,12 +108,17 @@ export class NewPublicationPage implements OnInit {
this.folderId = this.navParams.get('folderId');
this.publication = this.navParams.get('publication');
this.publicationTitle = 'Nova Publicação';
this.intent = this.navParams.get('intent');
this.convertBlobToBase64Worker = new Worker(new URL('./convertBlobToBase64.worker.js', import.meta.url));
}
ngOnInit() {
if(this.intent) {
this.capturedImage = 'data:image/jpeg;base64,'+this.intent;
}
this.setTitle();
Filesystem.mkdir({
path: IMAGE_DIR,
@@ -14,6 +14,7 @@ import { ToastService } from 'src/app/services/toast.service';
import { ThemeService } from 'src/app/services/theme.service'
import { PermissionService } from 'src/app/services/permission.service';
import { Storage } from '@ionic/storage';
import { NewPublicationPage } from './new-publication/new-publication.page';
// import { ActionModel } from 'src/app/models/beast-orm';
@@ -285,7 +286,29 @@ export class PublicationsPage implements OnInit {
}
async AddPublication(publicationType: any, folderId: any,intent: any) {
const modal = await this.modalController.create({
component: NewPublicationPage,
componentProps: {
publicationType: publicationType,
folderId: folderId,
intent: intent
},
cssClass: 'new-publication modal modal-desktop',
backdropDismiss: false
});
modal.onDidDismiss().then(() => {
this.doRefresh(event);
});
await modal.present();
}
goToPublicationsList(folderId: string) {
if(this.intent){
this.AddPublication('2',folderId,this.intent)
return
}
if (window.innerWidth < 701) {
this.router.navigate(['/home/publications', folderId]);
this.idSelected = "";