Skip to content

Can't set templateName of custom bodyViewClass of ModalPane #79

@pzuraq

Description

@pzuraq

I'm trying to create a custom bodyViewClass to replace the default modal body class which is too simple for my needs. Whenever I try to set a templateName, however, I get the following error:

Uncaught Error: assertion failed: You specified the templateName vehicle/price/net-reduction for <(subclass of Ember.View):ember1414>, but it did not exist.

I can use the same templateName elsewhere in the app and it displays just fine. This only comes up in the ModalPane instance. Below is the code for the ModalPane:

Bootstrap.ModalPane.popup({
  heading: 'Net Reduction',
  message: 'test',
  bodyViewClass: Ember.View.extend({
    templateName: 'vehicle/price/net-reduction'
  }),
  primary: 'Submit',
  secondary: 'Cancel',
  showBackdrop: true,
  callback: function(opts, event) {

  }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions