Skip to content

Commit

Permalink
RenderPluginDoc: convert bools to true/false, not yes/no (ansible#3012)
Browse files Browse the repository at this point in the history
Issue: AAH-1859
(cherry picked from commit 6858556)
  • Loading branch information
himdel committed Dec 19, 2022
1 parent 79124a3 commit 782f239
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/1859.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Display boolean values in docs as true/false (was yes/no)
6 changes: 3 additions & 3 deletions src/components/render-plugin-doc/render-plugin-doc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,11 @@ export class RenderPluginDoc extends React.Component<IProps, IState> {
let choices, defaul;

if (option['type'] === 'bool') {
choices = ['no', 'yes'];
choices = ['true', 'false'];
if (option['default'] === true) {
defaul = 'yes';
defaul = 'true';
} else if (option['default'] === false) {
defaul = 'no';
defaul = 'false';
}
} else {
choices = option['choices'] || [];
Expand Down

0 comments on commit 782f239

Please sign in to comment.