ember-cli 1.13.1
This commit is contained in:
parent
780b5ddb6c
commit
58779a4a7d
13 changed files with 63 additions and 31 deletions
|
@ -20,7 +20,7 @@ export default DS.RESTAdapter.extend({
|
|||
errors = {};
|
||||
if (response.errors !== undefined) {
|
||||
var jsonErrors = response.errors;
|
||||
Ember.EnumerableUtils.forEach(Ember.keys(jsonErrors), function(key) {
|
||||
Ember.EnumerableUtils.forEach(Object.keys(jsonErrors), function(key) {
|
||||
errors[Ember.String.camelize(key)] = jsonErrors[key];
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#x-application}}
|
||||
<div class="flakes-navigation">
|
||||
{{site-logo}}
|
||||
{{#if session.isAuthenticated}}
|
||||
|
@ -49,3 +50,4 @@
|
|||
{{outlet}}
|
||||
</div>
|
||||
</div>
|
||||
{{/x-application}}
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
import Ember from 'ember';
|
||||
/* global FlakesFrame */
|
||||
|
||||
export default Ember.View.extend({
|
||||
classNames: ['flakes-frame'],
|
||||
didInsertElement: function() {
|
||||
FlakesFrame.init();
|
||||
}
|
||||
});
|
3
app/pods/components/site-logo/component.js
Normal file
3
app/pods/components/site-logo/component.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Component.extend({});
|
10
app/pods/components/x-application/component.js
Normal file
10
app/pods/components/x-application/component.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
classNames: ["flakes-frame"],
|
||||
|
||||
didInsertElement: function() {
|
||||
FlakesFrame.init();
|
||||
},
|
||||
|
||||
});
|
1
app/pods/components/x-application/template.hbs
Normal file
1
app/pods/components/x-application/template.hbs
Normal file
|
@ -0,0 +1 @@
|
|||
{{yield}}
|
Reference in a new issue