code: function() {
              var that = this;
  
              return dialogs.fields("Edit", [
                  {
                      "title": {
                          'label': "Title",
                          'type': "text"
                      },
                      "condition": {
                          'label': "Condition",
                          'type': "text"
                      }
                  },
                  allAlerts[this.get("type")].config
              ], _.extend({}, this.get("configuration"), {
                  'title': this.get("title"),
                  'condition': this.get("condition")
              }))
              .then(function(data) {
                  that.set("title", data.title);
                  that.set("condition", data.condition);
                  that.set("configuration", _.omit(data, "title", "condition"));
                  return that.edit();
              });
          }
docs: Open configuration dialogs