Skip to content

Commit d41fba3

Browse files
add pipeline selection update to maps
1 parent 96b3b89 commit d41fba3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

client/www/scripts/modules/gateway/gateway.map.directives.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ Gateway.directive('slGatewayMapForm', [
107107
}
108108
],
109109
link: function(scope, el, attrs) {
110+
scope.$watch('map.pipelineId', function(newVal, oldVal) {
111+
if (newVal) {
112+
$log.debug('the pipeline id has changed');
113+
GatewayServices.getPipelineById(newVal)
114+
.then(function(pipe) {
115+
scope.map.pipeline = pipe;
116+
});
117+
}
118+
}, true);
110119
/*
111120
*
112121
* Dirty check

0 commit comments

Comments
 (0)