Skip to content

Commit

Permalink
fix for maximumSelectionSize
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Mar 25, 2024
1 parent c69bc96 commit f8e1af3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pat/contentbrowser/contentbrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ parser.addArgument(
parser.addArgument("max-depth", "200");
parser.addArgument("base-path", `/`);
parser.addArgument("context-path", `/`);
parser.addArgument("maximum-selection-size", -1);
parser.addArgument("maximum-selection-size");
parser.addArgument("selectable-types");
parser.addArgument("separator", ";");
parser.addArgument("selection", []);
Expand Down
2 changes: 1 addition & 1 deletion src/pat/contentbrowser/src/SelectedItems.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
disabled={$config.maximumSelectionSize > 0 &&
($selectedItems.length || 0) >= $config.maximumSelectionSize}
on:click|preventDefault={() => ($showContentBrowser = true)}
>{#if config.maximumSelectionSize == 1}choose{:else}add{/if}</button
>{#if $config.maximumSelectionSize == 1}choose{:else}add{/if}</button
>
</div>
Expand Down

0 comments on commit f8e1af3

Please sign in to comment.