Merge branch '2080-reload_card_volume' of verdnatura/salix into dev
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
commit
48b4220c3e
|
@ -1,5 +1,5 @@
|
||||||
<vn-portal slot="menu">
|
<vn-portal slot="menu">
|
||||||
<vn-route-descriptor route="$ctrl.route"></vn-route-descriptor>
|
<vn-route-descriptor route="$ctrl.route" card-reload="$ctrl.reload()"></vn-route-descriptor>
|
||||||
<vn-left-menu source="card"></vn-left-menu>
|
<vn-left-menu source="card"></vn-left-menu>
|
||||||
</vn-portal>
|
</vn-portal>
|
||||||
<ui-view></ui-view>
|
<ui-view></ui-view>
|
||||||
|
|
|
@ -70,7 +70,7 @@ class Controller {
|
||||||
let url = `Routes/${this.route.id}/updateVolume`;
|
let url = `Routes/${this.route.id}/updateVolume`;
|
||||||
this.$http.post(url).then(() => {
|
this.$http.post(url).then(() => {
|
||||||
this.vnApp.showSuccess(this.$translate.instant('Volume updated'));
|
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'),
|
template: require('./index.html'),
|
||||||
bindings: {
|
bindings: {
|
||||||
route: '<',
|
route: '<',
|
||||||
|
cardReload: '&?',
|
||||||
quicklinks: '<'
|
quicklinks: '<'
|
||||||
},
|
},
|
||||||
require: {
|
|
||||||
card: '^?vnRouteCard'
|
|
||||||
},
|
|
||||||
controller: Controller
|
controller: Controller
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue