Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 1845f4a

Browse files
committed
Add selectors for user deletion action
1 parent 9a62f4f commit 1845f4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/views/user/userpage.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,15 @@ $this->headScript()->appendFile($this->coreWebroot.'/public/js/common/common.bro
188188

189189
if ($this->isAdmin && !$this->user->isAdmin()) {
190190
echo '
191-
<li><a onclick="midas.user.showDeleteDialog('.$this->escape($this->user->getKey(
191+
<li id="userDeleteActionAdmin"><a onclick="midas.user.showDeleteDialog('.$this->escape($this->user->getKey(
192192
)).');"><img alt="" src="'.$this->coreWebroot.'/public/images/icons/close.png"/> '.$this->t(
193193
'Delete user'
194194
).'</a></li>';
195195
} else {
196196
if (!$this->user->isAdmin() && $this->user->getKey() == $this->currentUser->getKey()
197197
) {
198198
echo '
199-
<li><a onclick="midas.user.showDeleteDialog('.$this->escape($this->user->getKey(
199+
<li id="userDeleteActionNonAdmin"><a onclick="midas.user.showDeleteDialog('.$this->escape($this->user->getKey(
200200
)).');"><img alt="" src="'.$this->coreWebroot.'/public/images/icons/close.png"/> '.$this->t(
201201
'Delete my account'
202202
).'</a></li>';

0 commit comments

Comments
 (0)