mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
personal_menu: Rename clear_status class.
This commit is contained in:
@@ -40,13 +40,13 @@ export function initialize() {
|
||||
const $popper = $(instance.popper);
|
||||
popover_menus.popover_instances.personal_menu = instance;
|
||||
|
||||
tippy(".clear_status", {
|
||||
tippy(".personal-menu-clear-status", {
|
||||
placement: "top",
|
||||
appendTo: document.body,
|
||||
interactive: true,
|
||||
});
|
||||
|
||||
$popper.one("click", ".clear_status", (e) => {
|
||||
$popper.one("click", ".personal-menu-clear-status", (e) => {
|
||||
e.preventDefault();
|
||||
const me = page_params.user_id;
|
||||
user_status.server_update_status({
|
||||
|
@@ -680,7 +680,7 @@ function register_click_handlers() {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$("body").on("click", ".user-card-popover-actions .clear_status", (e) => {
|
||||
$("body").on("click", ".user-card-popover-actions .personal-menu-clear-status", (e) => {
|
||||
e.preventDefault();
|
||||
const me = elem_to_user_id($(e.target).parents("ul"));
|
||||
user_status.server_update_status({
|
||||
|
@@ -1205,15 +1205,6 @@ ul {
|
||||
}
|
||||
}
|
||||
|
||||
.clear_status {
|
||||
margin-left: auto;
|
||||
color: hsl(0deg 0% 40%) !important;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.status_emoji {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
@@ -1225,6 +1216,15 @@ ul {
|
||||
}
|
||||
}
|
||||
|
||||
.personal-menu-clear-status {
|
||||
margin-left: auto;
|
||||
color: hsl(0deg 0% 40%) !important;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
#gear-menu-dropdown {
|
||||
padding: 5px 0;
|
||||
box-shadow: var(--box-shadow-gear-menu);
|
||||
|
@@ -42,7 +42,7 @@
|
||||
{{status_text}}
|
||||
</span>
|
||||
</span>
|
||||
<a href="" class="clear_status navbar-dropdown-menu-link" aria-label="{{t 'Clear status'}}" data-tippy-content="{{t 'Clear your status' }}">
|
||||
<a href="" class="personal-menu-clear-status navbar-dropdown-menu-link" aria-label="{{t 'Clear status'}}" data-tippy-content="{{t 'Clear your status' }}">
|
||||
<i class="navbar-dropdown-icon zulip-icon zulip-icon-x-circle"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
Reference in New Issue
Block a user