The nearby View inside MobileFrontend manages a single template with 2 template partials "messageBox" and "pageList":
{{#errorOptions}}{{>messageBox}}{{/errorOptions}}
{{{spinner}}}
{{>pageList}}Removing both of these template partials will simplify the component, and help remove inheritance (and eventually the need for the nearby.hogan template entirely!).
To start with we will look at the pageList template partial.
Acceptance criteria
- The View.prototype.postRender method is used to prepend a new MessageBox using the contents of this.options.errorMEssage to this.$el
- WatchstarPageList.prototype.templatePartials.messageBox is no longer defined
- The line {{#errorOptions}}{{>messageBox}}{{/errorOptions}} is removed from nearby.hogan