Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add default number to dropdown buttons #2908

Conversation

kaori-tokashiki
Copy link
Contributor

@kaori-tokashiki kaori-tokashiki commented Oct 16, 2020

GW-4131 DB の値が null の場合、管理画面の設定値に値が表示されない
Screen Shot 2020-10-16 at 14 57 15

Comment on lines +157 to +160
pageLimitationS: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationS') || 20,
pageLimitationM: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationM') || 10,
pageLimitationL: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationL') || 50,
pageLimitationXL: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationXL') || 20,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DBにpageLimitationHogeがnullの場合、指定された数字が入るようにも設定しました。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この初期値は UI 側でセットする

@yuki-takei yuki-takei merged commit 764eb0c into feat/display-BookMarkList-including-pagination-as-component Oct 16, 2020
@yuki-takei yuki-takei deleted the imprv/gw4131-display-dropdown-label-in-case-of-null branch October 16, 2020 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants