Merge pull request 'removed autoLoad from vnTable' (#333) from 1788-remove_autoload_vnTable into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #333 Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
commit
31b967e368
|
@ -7,7 +7,6 @@ export default class Table {
|
||||||
this.table = $element[0];
|
this.table = $element[0];
|
||||||
this.field = null;
|
this.field = null;
|
||||||
this.order = null;
|
this.order = null;
|
||||||
this.autoLoad = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setOrder(field, order) {
|
setOrder(field, order) {
|
||||||
|
@ -25,9 +24,7 @@ export default class Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
$onChanges() {
|
$onChanges() {
|
||||||
// FIXME: The autoload property should be removed from vnTable
|
if (this.model && !this.model.data)
|
||||||
// because it's already implemented at vnModel
|
|
||||||
if (this.autoLoad && this.model && !this.model.data)
|
|
||||||
this.applyOrder();
|
this.applyOrder();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue