Add fetch polyfill and remove debug
This commit is contained in:
parent
9959291cff
commit
a2c0852f33
2 changed files with 2 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import fetch from 'fetch';
|
||||||
import Ember from 'ember';
|
import Ember from 'ember';
|
||||||
import config from '../config/environment';
|
import config from '../config/environment';
|
||||||
import jQuery from 'jquery';
|
import jQuery from 'jquery';
|
||||||
|
|
@ -25,8 +26,6 @@ export default Ember.Component.extend({
|
||||||
headers: headers
|
headers: headers
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
console.debug("Requete OK");
|
|
||||||
//window.location.reload();
|
|
||||||
this.setChartDataConsign(id, target);
|
this.setChartDataConsign(id, target);
|
||||||
this.set("isSaving", false);
|
this.set("isSaving", false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@
|
||||||
"ember-cli-uglify": "^1.2.0",
|
"ember-cli-uglify": "^1.2.0",
|
||||||
"ember-data": "^2.9.0",
|
"ember-data": "^2.9.0",
|
||||||
"ember-export-application-global": "^1.0.5",
|
"ember-export-application-global": "^1.0.5",
|
||||||
|
"ember-fetch": "1.3.0",
|
||||||
"ember-highcharts": "0.5.0",
|
"ember-highcharts": "0.5.0",
|
||||||
"ember-load-initializers": "^0.5.1",
|
"ember-load-initializers": "^0.5.1",
|
||||||
"ember-resolver": "^2.0.3",
|
"ember-resolver": "^2.0.3",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue