mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
zcommand: Rename enter_day_mode to switch_to_light_theme.
This commit is contained in:
@@ -59,7 +59,7 @@ export function tell_user(msg) {
|
|||||||
$("#compose-error-msg").text(msg);
|
$("#compose-error-msg").text(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function enter_day_mode() {
|
export function switch_to_light_theme() {
|
||||||
send({
|
send({
|
||||||
command: "/day",
|
command: "/day",
|
||||||
on_success(data) {
|
on_success(data) {
|
||||||
@@ -168,7 +168,7 @@ export function process(message_content) {
|
|||||||
|
|
||||||
const day_commands = ["/day", "/light"];
|
const day_commands = ["/day", "/light"];
|
||||||
if (day_commands.includes(content)) {
|
if (day_commands.includes(content)) {
|
||||||
enter_day_mode();
|
switch_to_light_theme();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user