Make eslint happy.
This commit is contained in:
parent
1ec43ffce7
commit
bcdff915dc
|
@ -78,7 +78,7 @@ export default Ember.Component.extend({
|
|||
}
|
||||
|
||||
// Check the table name vs the filter
|
||||
if (filter.source == key || filter.source + "s" == key) {
|
||||
if (filter.source === key || filter.source + "s" === key) {
|
||||
tables.unshift({
|
||||
name: key,
|
||||
columns: schema[key],
|
||||
|
@ -95,7 +95,7 @@ export default Ember.Component.extend({
|
|||
// filter the columns
|
||||
let filterCols = [];
|
||||
schema[key].forEach(function(col) {
|
||||
if (filter.source == col.column_name) {
|
||||
if (filter.source === col.column_name) {
|
||||
filterCols.unshift(col);
|
||||
} else if (filter.test(col.column_name)) {
|
||||
filterCols.push(col);
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
export default Ember.TextField.extend({
|
||||
value: function(key, value, previousValue) {
|
||||
value: function(key, value) {
|
||||
if (arguments.length > 1) {
|
||||
this.get('params')[this.get('pname')] = value;
|
||||
}
|
||||
|
||||
return this.get('params')[this.get('pname')];
|
||||
}.property('params', 'pname')
|
||||
});
|
||||
|
|
|
@ -67,10 +67,6 @@ export default Ember.Component.extend({
|
|||
return this.get('info.nullable');
|
||||
}
|
||||
|
||||
function matches(regex) {
|
||||
return regex.test(value);
|
||||
}
|
||||
|
||||
const intVal = parseInt(value, 10);
|
||||
const intValid = !isNaN(intVal) && intVal < 2147483648 && intVal > -2147483649;
|
||||
const isPositiveInt = /^\d+$/.test(value);
|
||||
|
|
|
@ -162,7 +162,7 @@ const QueryResultComponent = Ember.Component.extend({
|
|||
form.submit();
|
||||
Em.run.next('afterRender', function() {
|
||||
document.body.removeChild(form);
|
||||
})
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ export default {
|
|||
container.lookup('store:main').addPluralization('query', 'queries');
|
||||
|
||||
if (!String.prototype.endsWith) {
|
||||
String.prototype.endsWith = function(searchString, position) {
|
||||
String.prototype.endsWith = function(searchString, position) { // eslint-disable-line no-extend-native
|
||||
var subjectString = this.toString();
|
||||
if (position === undefined || position > subjectString.length) {
|
||||
position = subjectString.length;
|
||||
|
|
|
@ -35,7 +35,6 @@ const Query = RestModel.extend({
|
|||
if (oldParams[pinfo.identifier]) {
|
||||
newParams[name] = oldParams[name];
|
||||
} else if (pinfo['default'] !== null) {
|
||||
if (pinfo['default'] === false) { debugger; }
|
||||
newParams[name] = pinfo['default'];
|
||||
} else if (pinfo['type'] === 'boolean') {
|
||||
newParams[name] = 'false';
|
||||
|
|
Loading…
Reference in New Issue