From 2f81727594dae619bbc5e0a1cac455edc4e42e86 Mon Sep 17 00:00:00 2001 From: Bernat Exposito Domenech Date: Fri, 7 Feb 2020 07:43:22 +0100 Subject: [PATCH] reload_card_volume --- modules/route/front/card/index.html | 2 +- modules/route/front/descriptor/index.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/route/front/card/index.html b/modules/route/front/card/index.html index 051d8714fb..9e0ae4e8c0 100644 --- a/modules/route/front/card/index.html +++ b/modules/route/front/card/index.html @@ -1,5 +1,5 @@ - + diff --git a/modules/route/front/descriptor/index.js b/modules/route/front/descriptor/index.js index cfa7188550..1beb7e0950 100644 --- a/modules/route/front/descriptor/index.js +++ b/modules/route/front/descriptor/index.js @@ -70,7 +70,7 @@ class Controller { let url = `Routes/${this.route.id}/updateVolume`; this.$http.post(url).then(() => { this.vnApp.showSuccess(this.$translate.instant('Volume updated')); - if (this.card) this.card.reload(); + this.cardReload(); }); } } @@ -82,10 +82,8 @@ ngModule.component('vnRouteDescriptor', { template: require('./index.html'), bindings: { route: '<', + cardReload: '&?', quicklinks: '<' }, - require: { - card: '^?vnRouteCard' - }, controller: Controller });