From 5d0551eb9ff6fd2217ac51a86ac61d4c9e83cc99 Mon Sep 17 00:00:00 2001 From: Sam Wing Date: Sat, 16 Nov 2019 23:57:45 -0500 Subject: [PATCH] o --- views/wishlist.pug | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/views/wishlist.pug b/views/wishlist.pug index c7c7e62..1cdbdbd 100644 --- a/views/wishlist.pug +++ b/views/wishlist.pug @@ -74,16 +74,16 @@ block content .control.inline input.inline.button(type='submit' value='Unpledge') td(data-label='Delete Item') - if item.addedBy === req.user._id - form.inline(method='POST', action=`/wishlist/${req.params.user}/remove/${item.id}`) - .field.inline - .control.inline - button.button.is-text( - type='submit', - style='text-decoration: none;' - ) - span.icon - i.fas.fa-trash + form.inline(method='POST', action=`/wishlist/${req.params.user}/remove/${item.id}`) + .field.inline + .control.inline + button.button.is-text( + type='submit', + style='text-decoration: none;', + disabled=item.addedBy !== req.user._id + ) + span.icon + i.fas.fa-trash else each item, index in wishlist