This commit is contained in:
Peter Maquiran
2023-01-30 17:41:27 +01:00
parent 1a715f5260
commit 4dd42a4e1f
4 changed files with 32 additions and 9 deletions
@@ -11,6 +11,7 @@ import { ToastService } from 'src/app/services/toast.service';
import { PedidoService } from 'src/app/Rules/pedido.service';
import { PermissionService } from 'src/app/services/permission.service';
import { NewGroupPage } from 'src/app/pages/chat/new-group/new-group.page';
import { ForwardPage } from 'src/app/modals/forward/forward.page';
@Component({
@@ -290,6 +291,27 @@ export class RequestOptionsPage implements OnInit {
}
async openForwardModal(tasK: any) {
let classs;
if (window.innerWidth <= 800) {
classs = 'book-meeting-modal modal modal-desktop'
} else {
classs = 'modal modal-desktop showAsideOptions'
}
const modal = await this.modalController.create({
component: ForwardPage,
componentProps: {
task: this.task,
},
cssClass: classs,
backdropDismiss: false
});
await modal.present();
modal.onDidDismiss().then(() => {
this.popoverController.dismiss('close');
});
}
async openDelegarModal(task: any) {