Skip to content

Commit 2af88e6

Browse files
committed
Don't show image name multiple times when reused in a template
Fixes openshift/origin#12006
1 parent 2a982a1 commit 2af88e6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/scripts/controllers/newfromtemplate.js

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ angular.module('openshiftConsole')
191191
});
192192
}
193193
});
194+
images = _.uniq(images, false, 'name');
194195
}
195196

196197
function getHelpLinks(template) {

dist/scripts/scripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7770,7 +7770,7 @@ d[a] || G.push({
77707770
name:a,
77717771
usesParameters:l(a)
77727772
});
7773-
});
7773+
}), G = _.uniq(G, !1, "name");
77747774
}
77757775
function D(a) {
77767776
var b = /^helplink\.(.*)\.title$/, c = /^helplink\.(.*)\.url$/, d = {};

0 commit comments

Comments
 (0)