hack to fix delete/unpledge
This commit is contained in:
parent
d36f1d17b3
commit
66d80661fc
1 changed files with 4 additions and 1 deletions
|
@ -80,7 +80,10 @@ block content
|
||||||
if item.pledgedBy && item.pledgedBy !== req.user._id
|
if item.pledgedBy && item.pledgedBy !== req.user._id
|
||||||
span.ugc Pledged for by #{item.pledgedBy}
|
span.ugc Pledged for by #{item.pledgedBy}
|
||||||
td(data-label='Delete Item')
|
td(data-label='Delete Item')
|
||||||
form.inline(method='POST', action=`/wishlist/${req.params.user}/remove/${item.id}`)
|
form.inline(
|
||||||
|
method='POST',
|
||||||
|
action=`/wishlist/${req.params.user}/${req.user._id === req.params.user ? 'delete' : 'unpledge'}/${item.id}`
|
||||||
|
)
|
||||||
.field.inline
|
.field.inline
|
||||||
.control.inline
|
.control.inline
|
||||||
button.button.is-text(
|
button.button.is-text(
|
||||||
|
|
Loading…
Reference in a new issue