mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
remove reject of the headets
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user