Remove refresh button for wishlist viewers

This commit is contained in:
grandeljay 2022-02-23 18:46:22 +01:00
parent 3edd85af08
commit 4f45bc84f1

View file

@ -77,6 +77,8 @@ class Wishlist
/** /**
* Cards * Cards
*/ */
$userIsCurrent = isset($_SESSION['user']) && $this->data['user'] === $_SESSION['user']['id'];
if (!empty($products)) { ?> if (!empty($products)) { ?>
<div class="ui stackable three column grid container"> <div class="ui stackable three column grid container">
<?php foreach ($products as $product) { <?php foreach ($products as $product) {
@ -99,9 +101,11 @@ class Wishlist
<span class="provider"><?= $info->providerName ?></span> <span class="provider"><?= $info->providerName ?></span>
<?php } ?> <?php } ?>
<button class="ui icon button refresh"> <?php if($userIsCurrent) { ?>
<i class="refresh icon"></i> <button class="ui icon button refresh">
</button> <i class="refresh icon"></i>
</button>
<?php } ?>
</div> </div>
<?php } ?> <?php } ?>
@ -130,8 +134,6 @@ class Wishlist
</div> </div>
<div class="extra content buttons"> <div class="extra content buttons">
<?php $userIsCurrent = isset($_SESSION['user']) && $this->data['user'] === $_SESSION['user']['id']; ?>
<?php if (!$userIsCurrent) { ?> <?php if (!$userIsCurrent) { ?>
<a class="ui primary labeled icon button commit"> <a class="ui primary labeled icon button commit">
<i class="shopping cart icon"></i> <i class="shopping cart icon"></i>