refactor(temperatures): added crudmodel autoload for temperatures

This commit is contained in:
Carlos Jimenez Ruiz 2021-09-07 11:54:53 +02:00
parent 8bdb02c0fc
commit c7558dfb0b
1 changed files with 6 additions and 1 deletions

View File

@ -120,6 +120,12 @@
url="Thermographs/getThermographModels"
data="thermographModels">
</vn-crud-model>
<vn-crud-model
vn-id="temperaturesModel"
url="Temperatures"
data="Temperatures"
auto-load="true">
</vn-crud-model>
<vn-dialog class="edit"
vn-id="newThermographDialog"
on-accept="$ctrl.onNewThermographAccept()"
@ -158,7 +164,6 @@
required="true"
label="Temperature"
ng-model="$ctrl.newThermograph.temperatureFk"
url="Temperatures"
data='Temperatures'
show-field="name"
value-field="code">