Skip to content

Commit 746bf7a

Browse files
Broccoclydin
authored andcommitted
fix(@angular/cli): Prevent showing options with visible false
1 parent 091ab2c commit 746bf7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/@angular/cli/tasks/schematic-get-options.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default Task.extend({
3030
const keys = Object.keys(properties);
3131
const availableOptions = keys
3232
.map(key => ({...properties[key], ...{name: stringUtils.dasherize(key)}}))
33+
.filter(opt => opt.visible !== false)
3334
.map(opt => {
3435
let type;
3536
const schematicType = opt.type;

0 commit comments

Comments
 (0)