/popup: add scroll argument, allow scroll by default

b5cdb29bf3776fbc4c9c956b3e96076dbd4afae0

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +8 -0Ignore whitespace
public/scripts/slash-commands.js+8 -0
@@ -1396,6 +1396,13 @@ export function initDefaultSlashCommands() {
1396 returns: 'popup text',1396 returns: 'popup text',
1397 namedArgumentList: [1397 namedArgumentList: [
1398 SlashCommandNamedArgument.fromProps({1398 SlashCommandNamedArgument.fromProps({
1399 name: 'scroll',
1400 description: 'allows vertical scrolling of the content',
1401 typeList: [ARGUMENT_TYPE.BOOLEAN],
1402 enumList: commonEnumProviders.boolean('trueFalse')(),
1403 defaultValue: 'true',
1404 }),
1405 SlashCommandNamedArgument.fromProps({
1399 name: 'large',1406 name: 'large',
1400 description: 'show large popup',1407 description: 'show large popup',
1401 typeList: [ARGUMENT_TYPE.BOOLEAN],1408 typeList: [ARGUMENT_TYPE.BOOLEAN],
@@ -2108,6 +2115,7 @@ async function popupCallback(args, value) {
21082115
2109 /** @type {import('./popup.js').PopupOptions} */2116 /** @type {import('./popup.js').PopupOptions} */
2110 const popupOptions = {2117 const popupOptions = {
2118 allowVerticalScrolling: !isFalseBoolean(args?.scroll),
2111 large: isTrueBoolean(args?.large),2119 large: isTrueBoolean(args?.large),
2112 wide: isTrueBoolean(args?.wide),2120 wide: isTrueBoolean(args?.wide),
2113 wider: isTrueBoolean(args?.wider),2121 wider: isTrueBoolean(args?.wider),