#877 Establecer propiedad autoLoad del crud-model por defecto a false

This commit is contained in:
Gerard 2018-12-19 15:59:35 +01:00
parent 339027493d
commit 6c6d5cd8c1
15 changed files with 34 additions and 18 deletions

View File

@ -16,12 +16,14 @@
url="/client/api/AddressObservations"
fields="['id', 'addressFk', 'observationTypeFk', 'description']"
link="{addressFk: $ctrl.$stateParams.addressId}"
data="observations">
data="observations"
auto-load="true">
</vn-crud-model>
<vn-crud-model
url="/client/api/ObservationTypes"
fields="['id', 'description']"
data="types">
data="types"
auto-load="true">
</vn-crud-model>
<form name="form" ng-submit="$ctrl.submit()" compact>
<vn-card pad-large>

View File

@ -3,7 +3,8 @@
url="/client/api/Addresses"
filter="::$ctrl.filter"
link="{clientFk: $ctrl.$stateParams.id}"
data="addresses">
data="addresses"
auto-load="true">
</vn-crud-model>
<vn-vertical>

View File

@ -3,7 +3,8 @@
url="/client/api/ClientContacts"
fields="['id', 'name', 'phone', 'clientFk']"
link="{clientFk: $ctrl.$stateParams.id}"
data="contacts">
data="contacts"
auto-load="true">
</vn-crud-model>
<vn-watcher
vn-id="watcher"

View File

@ -3,7 +3,8 @@
url="/client/api/clientObservations"
filter="{order: 'created DESC'}"
link="{clientFk: $ctrl.$stateParams.id}"
data="notes">
data="notes"
auto-load="true">
</vn-crud-model>
<vn-vertical compact>

View File

@ -13,7 +13,7 @@ export default class CrudModel extends ModelProxy {
this.$http = $http;
this.$q = $q;
this.primaryKey = 'id';
this.autoLoad = true;
this.autoLoad = false;
}
$onInit() {

View File

@ -3,7 +3,8 @@
url="/item/api/ItemBarcodes"
fields="['id', 'itemFk', 'code']"
link="{itemFk: $ctrl.$stateParams.id}"
data="barcodes">
data="barcodes"
auto-load="true">
</vn-crud-model>
<vn-watcher
vn-id="watcher"

View File

@ -1,4 +1,4 @@
<mg-ajax path="/item/api/Items" options="vnPost"></mg-ajax>
<mg-ajax path="/item/api/Items/new" options="vnPost"></mg-ajax>
<vn-watcher
vn-id="watcher"
data="$ctrl.item"

View File

@ -3,7 +3,8 @@
url="/item/api/ItemNiches"
fields="['id', 'itemFk', 'warehouseFk', 'code']"
link="{itemFk: $ctrl.$stateParams.id}"
data="niches">
data="niches"
auto-load="true">
</vn-crud-model>
<vn-watcher
vn-id="watcher"

View File

@ -6,7 +6,8 @@
include="$ctrl.include"
order="priority ASC"
on-row-change="$ctrl.getSourceTable(obj)"
data="$ctrl.itemTags">
data="$ctrl.itemTags"
auto-load="true">
</vn-crud-model>
<vn-watcher
vn-id="watcher"
@ -16,7 +17,8 @@
<vn-crud-model
url="/item/api/Tags"
fields="['id','name','isFree', 'sourceTable']"
data="tags">
data="tags"
auto-load="true">
</vn-crud-model>
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
<vn-card pad-large>

View File

@ -1,7 +1,8 @@
<vn-crud-model
url="/item/api/TaxClasses"
fields="['id', 'description', 'code']"
data="classes">
data="classes"
auto-load="true">
</vn-crud-model>
<form name="form" ng-submit="$ctrl.submit()" compact>
<vn-card pad-large>

View File

@ -3,7 +3,8 @@
url="/ticket/api/Sales"
link="{ticketFk: $ctrl.$stateParams.id}"
filter="::$ctrl.filter"
data="components">
data="components"
auto-load="true">
</vn-crud-model>
<vn-vertical>
<vn-card pad-large>

View File

@ -3,11 +3,13 @@
url="/ticket/api/TicketObservations"
fields="['id', 'ticketFk', 'observationTypeFk', 'description']"
link="{ticketFk: $ctrl.$stateParams.id}"
data="observations">
data="observations"
auto-load="true">
</vn-crud-model>
<vn-crud-model
url="/ticket/api/ObservationTypes"
data="observationTypes">
data="observationTypes"
auto-load="true">
</vn-crud-model>
<vn-watcher
vn-id="watcher"

View File

@ -3,7 +3,8 @@
url="/ticket/api/TicketPackagings"
fields="['id', 'ticketFk', 'packagingFk', 'quantity', 'created']"
link="{ticketFk: $ctrl.$stateParams.id}"
data="packages" on-data-change="$ctrl.onDataChange()">
data="packages" on-data-change="$ctrl.onDataChange()"
auto-load="true">
</vn-crud-model>
<vn-watcher
vn-id="watcher"

View File

@ -4,7 +4,8 @@
link="{ticketFk: $ctrl.$stateParams.id}"
filter="::$ctrl.filter"
limit="20"
data="sales">
data="sales"
auto-load="true">
</vn-crud-model>
<vn-vertical>

View File

@ -2,7 +2,8 @@
vn-id="model"
url="/ticket/api/TicketServices"
link="{ticketFk: $ctrl.$stateParams.id}"
data="services" on-data-change="$ctrl.onDataChange()">
data="services"
auto-load="true">
</vn-crud-model>
<vn-watcher
vn-id="watcher"