Skip to content

Commit

Permalink
Update labels
Browse files Browse the repository at this point in the history
  • Loading branch information
asimonok committed Jun 20, 2024
1 parent a251d8d commit 77bb43a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/constants/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ export const enum ConfirmationElementDisplayMode {
* Confirmation Element Display Mode Options
*/
export const CONFIRMATION_ELEMENT_DISPLAY_MODE_OPTIONS = [
{ label: 'All Elements', value: ConfirmationElementDisplayMode.ALL },
{ label: 'Modified Elements', value: ConfirmationElementDisplayMode.MODIFIED },
{ label: 'All', value: ConfirmationElementDisplayMode.ALL },
{ label: 'Only updated', value: ConfirmationElementDisplayMode.MODIFIED },
];
5 changes: 3 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,15 @@ export const plugin = new PanelPlugin<PanelOptions>(FormPanel)
showIf: (config) => config.update.confirm,
})
.addRadio({
path: 'confirmModal.displayedModalElements',
path: 'confirmModal.elementDisplayMode',
name: 'Display Values',
description: 'Choose what elements will be displayed in modal window.',
description: 'Which elements should be shown.',
category: ['Update Confirmation Window'],
settings: {
options: CONFIRMATION_ELEMENT_DISPLAY_MODE_OPTIONS,
},
defaultValue: ConfirmationElementDisplayMode.MODIFIED,
showIf: (config) => config.update.confirm,
})
.addTextInput({
path: 'confirmModal.body',
Expand Down

0 comments on commit 77bb43a

Please sign in to comment.