From c4e51146fdcc4ee39f395c2703f630a48ef6be1b Mon Sep 17 00:00:00 2001 From: carlosjr Date: Mon, 6 Sep 2021 16:39:44 +0200 Subject: [PATCH] refactor(thermograph): temperatures source updated on frontend --- modules/travel/front/thermograph/create/index.html | 14 +++++--------- modules/travel/front/thermograph/create/index.js | 3 +-- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/modules/travel/front/thermograph/create/index.html b/modules/travel/front/thermograph/create/index.html index f73938f5bc..d03bcfd1a4 100644 --- a/modules/travel/front/thermograph/create/index.html +++ b/modules/travel/front/thermograph/create/index.html @@ -120,11 +120,6 @@ url="Thermographs/getThermographModels" data="thermographModels"> - - + ng-model="$ctrl.newThermograph.temperatureFk" + url="Temperatures" + data='Temperatures' + show-field="name" + value-field="code"> diff --git a/modules/travel/front/thermograph/create/index.js b/modules/travel/front/thermograph/create/index.js index 666393350c..b6d78fc50e 100644 --- a/modules/travel/front/thermograph/create/index.js +++ b/modules/travel/front/thermograph/create/index.js @@ -63,12 +63,11 @@ class Controller extends Section { this.newThermograph = { thermographId: this.thermographId, warehouseId: this.warehouseId, - temperature: defaultTemperature, + temperatureFk: defaultTemperature, model: defaultModel }; this.$.modelsModel.refresh(); - this.$.temperaturesModel.refresh(); this.$.newThermographDialog.show(); }