admin-config
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -39,3 +39,7 @@ import ReferenceField from "./ReferenceField"; | ||
getSortFieldName() { | ||
return this._targetEntity.name() + '_ListView.' + (this.sortField() || this._targetReferenceField); | ||
if (!this.sortField()) { | ||
return null; | ||
} | ||
return this._targetEntity.name() + '_ListView.' + this.sortField(); | ||
} | ||
@@ -42,0 +46,0 @@ } |
@@ -24,3 +24,3 @@ import Field from "./Field"; | ||
datagridName() { | ||
return this._targetEntity.name() + '_' + this._type; | ||
return this._targetEntity.name() + '_ListView'; | ||
} | ||
@@ -109,3 +109,7 @@ | ||
getSortFieldName() { | ||
return this._targetEntity.name() + '_ListView.' + (this.sortField() || this._targetField.name()); | ||
if (!this.sortField()) { | ||
return null; | ||
} | ||
return this._targetEntity.name() + '_ListView.' + this.sortField(); | ||
} | ||
@@ -112,0 +116,0 @@ } |
{ | ||
"name": "admin-config", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -43,3 +43,5 @@ var assert = require('chai').assert; | ||
.targetEntity(human) | ||
.targetField(new Field('name')); | ||
.targetField(new Field('name')) | ||
.sortField('name') | ||
.sortDir('DESC'); | ||
@@ -46,0 +48,0 @@ human |
Sorry, the diff of this file is not supported yet
115883
3112