mirror of https://github.com/zulip/zulip.git
zcommand: Rename enter_night_mode to switch_to_dark_theme.
This commit is contained in:
parent
0a949274e9
commit
c1e4dc5ccc
|
@ -81,7 +81,7 @@ export function enter_day_mode() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function enter_night_mode() {
|
export function switch_to_dark_theme() {
|
||||||
send({
|
send({
|
||||||
command: "/night",
|
command: "/night",
|
||||||
on_success(data) {
|
on_success(data) {
|
||||||
|
@ -174,7 +174,7 @@ export function process(message_content) {
|
||||||
|
|
||||||
const night_commands = ["/night", "/dark"];
|
const night_commands = ["/night", "/dark"];
|
||||||
if (night_commands.includes(content)) {
|
if (night_commands.includes(content)) {
|
||||||
enter_night_mode();
|
switch_to_dark_theme();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue