EyeSeeTea / FIRE-WiFiCalling

WiFi Calling App to be used with LibreServer
GNU General Public License v3.0
5 stars 1 forks source link

Feature/dialog #42

Closed MurhafSousli closed 7 years ago

MurhafSousli commented 7 years ago

This branch is created from feautre/connect, however I made this PR against development branch.

closes #25

ezgif com-video-to-gif

Usage:

this.modalCtrl.create(DialogComponent, {
    title: 'Error',
    content: 'Login/Register failed',
    buttons: [
        { label: 'Ok', color: 'primary' }
    ]
}).present();

// if expecting a confirmation from user

const modal = this.modalCtrl.create(DialogComponent,  {
    title: 'Error',
    content: 'Login/Register failed',
    buttons: [
        { label: 'Yes', color: 'success', value: true },
        { label: 'No', color: 'danger', value: false }
    ]
})
modal.onDidDismiss(data => {
    console.log(data);
});
modal.present();
adrianq commented 7 years ago

I have also created a new card regarding documentation https://github.com/EyeSeeTea/FIRE-WiFiCalling/issues/50 Let's start adding some content to the wiki so we have a handy cheat sheet

MurhafSousli commented 7 years ago

@adrianq This is because you ran the app on a full browser size, so the modal got different class, try again with inspect for mobile device and it will look as expected.

adrianq commented 7 years ago

Thanks @MurhafSousli !