We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65eefe1 + 78f2227 commit 381e84eCopy full SHA for 381e84e
app/routes/crate.js
@@ -4,9 +4,8 @@ export default Ember.Route.extend({
4
model(params) {
5
return this.store.find('crate', params.crate_id).catch(e => {
6
if (e.errors.any(e => e.detail === 'Not Found')) {
7
- this.controllerFor('application').set('nextFlashError', `Crate '${params.crate_id}' does not exist`);
8
- return this.replaceWith('index');
+ return this.controllerFor('application').set('flashError', `Crate '${params.crate_id}' does not exist`);
9
}
10
});
11
- },
+ }
12
app/templates/crate/error.hbs
@@ -0,0 +1 @@
1
+{{ title 'Crate Not Found' }}
0 commit comments