DEV: Remove ESLint warnings 🚨
This commit is contained in:
@@ -2,7 +2,7 @@ export default Ember.Component.extend({
|
||||
classNameBindings: [":schema-table", "open"],
|
||||
tagName: "li",
|
||||
|
||||
open: Em.computed.alias("table.open"),
|
||||
open: Ember.computed.alias("table.open"),
|
||||
|
||||
_bindClicks: function() {
|
||||
const self = this;
|
||||
|
||||
@@ -52,7 +52,7 @@ export default Ember.Component.extend({
|
||||
}.property("schema"),
|
||||
|
||||
rfilter: function() {
|
||||
if (!Em.isBlank(this.get("filter"))) {
|
||||
if (!Ember.isBlank(this.get("filter"))) {
|
||||
return new RegExp(this.get("filter"));
|
||||
}
|
||||
}.property("filter"),
|
||||
@@ -99,7 +99,7 @@ export default Ember.Component.extend({
|
||||
filterCols.push(col);
|
||||
}
|
||||
});
|
||||
if (!Em.isEmpty(filterCols)) {
|
||||
if (!Ember.isEmpty(filterCols)) {
|
||||
tables.push({
|
||||
name: key,
|
||||
columns: filterCols,
|
||||
|
||||
@@ -66,7 +66,7 @@ export default Ember.Component.extend({
|
||||
const type = this.get("info.type"),
|
||||
value = this.get("value");
|
||||
|
||||
if (Em.isEmpty(this.get("value"))) {
|
||||
if (Ember.isEmpty(this.get("value"))) {
|
||||
return this.get("info.nullable");
|
||||
}
|
||||
|
||||
|
||||
@@ -26,11 +26,11 @@ function transformedRelTable(table, modelClass) {
|
||||
const QueryResultComponent = Ember.Component.extend({
|
||||
layoutName: "explorer-query-result",
|
||||
|
||||
rows: Em.computed.alias("content.rows"),
|
||||
columns: Em.computed.alias("content.columns"),
|
||||
params: Em.computed.alias("content.params"),
|
||||
explainText: Em.computed.alias("content.explain"),
|
||||
hasExplain: Em.computed.notEmpty("content.explain"),
|
||||
rows: Ember.computed.alias("content.rows"),
|
||||
columns: Ember.computed.alias("content.columns"),
|
||||
params: Ember.computed.alias("content.params"),
|
||||
explainText: Ember.computed.alias("content.explain"),
|
||||
hasExplain: Ember.computed.notEmpty("content.explain"),
|
||||
|
||||
@computed("content.result_count")
|
||||
resultCount: function(count) {
|
||||
@@ -184,7 +184,7 @@ const QueryResultComponent = Ember.Component.extend({
|
||||
|
||||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
Em.run.next("afterRender", function() {
|
||||
Ember.run.next("afterRender", function() {
|
||||
document.body.removeChild(form);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -84,7 +84,6 @@ const QueryRowContentComponent = Ember.Component.extend(
|
||||
(t.template || fallback)(ctx, params)
|
||||
);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
return "error";
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user