user_card_popover: Fix clear link not working.

Incorrectly migrated in 87c87ed41f.
This commit is contained in:
Aman Agrawal 2023-10-25 09:59:43 +00:00 committed by Tim Abbott
parent 3f1cc1b69d
commit 75aa91a39f
2 changed files with 2 additions and 2 deletions

View File

@ -680,7 +680,7 @@ function register_click_handlers() {
e.preventDefault();
});
$("body").on("click", ".user-card-popover-actions .personal-menu-clear-status", (e) => {
$("body").on("click", ".user-card-popover-actions .user-card-clear-status-button", (e) => {
e.preventDefault();
const me = elem_to_user_id($(e.target).parents("ul"));
user_status.server_update_status({

View File

@ -78,7 +78,7 @@
<span class="status_text">
{{status_text}}
{{#if is_me}}
<span class="clear_status_button">(<a tabindex="0" class="clear_status">{{t "clear" }}</a>)</span>
<span>(<a tabindex="0" class="user-card-clear-status-button">{{t "clear" }}</a>)</span>
{{/if}}
</span>
</span>