Skip to content

Commit b07f8b1

Browse files
committed
change order of the prompter questions
1 parent 0f7b3ea commit b07f8b1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ng-generate/table-prompter/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function getTtlPaths(promptSubj: Subject<any>, allAnswers: Schema, subscriber: S
152152
message: 'Please enter a name for your config file. It will be automatically appended to (<config-file-name>-wizard.config.json):',
153153
validate: function (input: string) {
154154
return input.length === 0 ? 'The config file name cannot be empty. Please provide a valid name.' : true;
155-
}
155+
},
156156
};
157157

158158
const importConfigFile = {
@@ -161,7 +161,8 @@ function getTtlPaths(promptSubj: Subject<any>, allAnswers: Schema, subscriber: S
161161
excludeFilter: (nodePath: any) => !nodePath.endsWith('wizard.config.json'),
162162
excludePath: (nodePath: any) => nodePath.startsWith('node_modules'),
163163
itemType: 'file',
164-
message: 'Choose the path to an existing wizard config file which ends with "wizard.config.json". Start writing file name for suggestions:',
164+
message:
165+
'Choose the path to an existing wizard config file which ends with "wizard.config.json". Start writing file name for suggestions:',
165166
rootPath: './',
166167
suggestOnly: false,
167168
depthLimit: 5,
@@ -526,7 +527,7 @@ function getUserConfigQuestions(allAnswers: any, tree: Tree, options: Schema): Q
526527
const requestOptionalMaterialTheme = {
527528
type: 'confirm',
528529
name: 'getOptionalMaterialTheme',
529-
message: 'Do you want to add indigo.pink material theme?',
530+
message: 'Do you want to add the Angular Material theme? (Indigo Pink Theme)',
530531
when: () => !options.getOptionalMaterialTheme,
531532
default: false,
532533
};
@@ -756,8 +757,8 @@ function getUserConfigQuestions(allAnswers: any, tree: Tree, options: Schema): Q
756757
requestEnableRemoteDataHandling,
757758
requestCustomService,
758759
requestAspectModelVersionSupport,
760+
requestOptionalMaterialTheme,
759761
requestCustomStyleImports,
760762
requestOverwriteFiles,
761-
requestOptionalMaterialTheme,
762763
];
763764
}

0 commit comments

Comments
 (0)