mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 10:33:54 +00:00
personal_menu: Rename clear_status class.
This commit is contained in:
@@ -40,13 +40,13 @@ export function initialize() {
|
|||||||
const $popper = $(instance.popper);
|
const $popper = $(instance.popper);
|
||||||
popover_menus.popover_instances.personal_menu = instance;
|
popover_menus.popover_instances.personal_menu = instance;
|
||||||
|
|
||||||
tippy(".clear_status", {
|
tippy(".personal-menu-clear-status", {
|
||||||
placement: "top",
|
placement: "top",
|
||||||
appendTo: document.body,
|
appendTo: document.body,
|
||||||
interactive: true,
|
interactive: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
$popper.one("click", ".clear_status", (e) => {
|
$popper.one("click", ".personal-menu-clear-status", (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const me = page_params.user_id;
|
const me = page_params.user_id;
|
||||||
user_status.server_update_status({
|
user_status.server_update_status({
|
||||||
|
|||||||
@@ -680,7 +680,7 @@ function register_click_handlers() {
|
|||||||
e.preventDefault();
|
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();
|
e.preventDefault();
|
||||||
const me = elem_to_user_id($(e.target).parents("ul"));
|
const me = elem_to_user_id($(e.target).parents("ul"));
|
||||||
user_status.server_update_status({
|
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 {
|
.status_emoji {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 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 {
|
#gear-menu-dropdown {
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
box-shadow: var(--box-shadow-gear-menu);
|
box-shadow: var(--box-shadow-gear-menu);
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
{{status_text}}
|
{{status_text}}
|
||||||
</span>
|
</span>
|
||||||
</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>
|
<i class="navbar-dropdown-icon zulip-icon zulip-icon-x-circle"></i>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user