-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call tab always go to Call Page #55
Comments
Tried things like:
and
(and other kinds of root pages), and nothing. There is no simple way I can find that doesn't go through changing the |
Hey @MurhafSousli , thanks for jumping in. Sure: Type a number, press "CALL", then go to another tab ("History", for example), and finally go back to the "Call" tab. Current behavior: it goes to the |
@jordibc How about opening it using ModalController, You can add a custom css class to adjust the dialog size in call.ts constructor(public modalCtrl: ModalController) {
}
call() {
this.modalCtrl.create(
CallingPage,
{phoneNumber: this.phoneNumber},
{cssClass: 'calling-dialog'}
).present();
} User won't be able to go to a different tab while calling dialog is opened. |
@jordibc Sorry for the delay, e.g. to make a full size dialog .calling-dialog {
.modal-wrapper {
width: 100%;
height: 100%;
}
} If you would like to make calling dialog small (which isn't a bad idea), then |
There's a problem there, cssClass was not added until 3.1 and we are using 2.3.3, right? |
@jordibc we are using ionic 3,
where the ignore the second parameter, it is for passing data to the component which we won't use So the usage will be /** Create dialog instance */
const callingDialog = this.modal.create(CallingComponent, null, { cssClass: 'calling-dialog' });
/** Get user choice once the dialog is dismissed */
callingDialog.onDidDismiss(choice => {
console.log(choice);
});
/** Open the dialog */
callingDialog.present(); I forgot to mention that but
|
I give up. I've tried using the directory structure that you suggest, making it a stand-alone component (not a lazily-loaded IonicPage), putting the cssClass in calling.scss and call.scss, and nothing, nothing ever works beyond having the dialog appear as a small box as I put in the picture before. I'd like to defer this to someone that knows instead of keep on trying randomly failing stuff due to my incompetence :) |
Ok, no worries @jordibc :) I have unassigned it to you. Thank you for the effort and we will come back to this in the mid term! |
Instead of going to CallingPage if it was already there before leaving the tab.
The text was updated successfully, but these errors were encountered: