code: function() {
              var that = this;
  
              return this.alerts.loadAll()
              .then(function() {
                  return dialogs.open(AlertsDialog, {
                      alerts: that.alerts
                  });
              });
          }
docs: Manage alerts