Skip to content

Commit 93ca189

Browse files
committed
feat: Customized the prompt text for import and destroy
1 parent ff83a2f commit 93ca189

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

src/ui/reporters/default-reporter.tsx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,28 @@ export class DefaultReporter implements Reporter {
8686
fullscreen()
8787
process.on('beforeExit', exitFullScreen);
8888

89+
let props;
90+
switch (promptType) {
91+
case PromptType.IMPORT: {
92+
props = {
93+
title: 'Multiple instances exist: identify which instance to import',
94+
description: 'fill out required',
95+
}
96+
break;
97+
}
98+
99+
case PromptType.DESTROY: {
100+
props = {
101+
title: 'Multiple instances exist: identify which instance to destroy',
102+
description: 'fill out required',
103+
}
104+
break;
105+
}
106+
}
107+
89108
const formProps: FormProps = {
90109
form: {
91-
title: 'Identify which instance to import',
92-
description: 'fill out the required information to submit',
110+
...props,
93111
sections: resources.map((info) => ({
94112
title: info.type,
95113
description: info.description,

0 commit comments

Comments
 (0)