Add the ability to suggest items for someone else without pledging for it (#29)

* add suggest button to wishlist

* make suggest button work

* remove delete-on-unpledge logic
This commit is contained in:
Wingy 2022-10-03 11:32:25 -04:00 committed by GitHub
parent 0e6420f714
commit b94afc3579
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -215,9 +215,12 @@ block content
name='note',
placeholder=lang('WISHLIST_OPTIONAL')
)
.field
.field.is-grouped
.control
input.button(type='submit' value=(req.user._id === req.params.user ? lang('WISHLIST_ADD') : lang('WISHLIST_PLEDGE_ITEM')))
if req.user._id !== req.params.user
.control
input.inline.button(type='submit', value=lang('WISHLIST_SUGGEST'), name='suggest')
script(src=`${_CC.config.base}js/wishlist.js`)
block print