Alerts

Used to handle normal ionic alerts, enriched for a more detailed view with better stylings.

Example

async showValid(dapp: any): Promise<any> {
  this.alertService.addDAppAlertStyle(dapp);

  await this
    .alertService.showSubmitAlert(
      '_dappdapps.alert.validTitle',
      {
        key: '_dappdapps.alert.dappMessage',
        translateOptions: dapp
      },
      'cancel',
      'submit'
    );

  this.alertService.removeDAppAlertStyle(dapp.name);
}
...
'validMessage': `
  <div class="advanced-alert">
    <div class="alert-img-container">
      <div class="alert-img evan-img-{{ name }}"></div>
    </div>
    <div class="alert-body">
      <h3>{{ name }}</h3>
      <span>{{ description }}</span>
    </div>
  </div>
`
...

View Example

../../_images/alert.png