mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
js: Indent case clauses in switch statements.
Prettier would do this anyway, but it’s separated out for a more reviewable diff. Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
f3726db89a
commit
6924d501bc
@@ -26,15 +26,15 @@ exports.get_user_circle_class = function (user_id) {
|
||||
const status = exports.buddy_status(user_id);
|
||||
|
||||
switch (status) {
|
||||
case "active":
|
||||
return "user_circle_green";
|
||||
case "idle":
|
||||
return "user_circle_orange";
|
||||
case "away_them":
|
||||
case "away_me":
|
||||
return "user_circle_empty_line";
|
||||
default:
|
||||
return "user_circle_empty";
|
||||
case "active":
|
||||
return "user_circle_green";
|
||||
case "idle":
|
||||
return "user_circle_orange";
|
||||
case "away_them":
|
||||
case "away_me":
|
||||
return "user_circle_empty_line";
|
||||
default:
|
||||
return "user_circle_empty";
|
||||
}
|
||||
};
|
||||
|
||||
@@ -42,15 +42,15 @@ exports.status_description = function (user_id) {
|
||||
const status = exports.buddy_status(user_id);
|
||||
|
||||
switch (status) {
|
||||
case "active":
|
||||
return i18n.t("Active");
|
||||
case "idle":
|
||||
return i18n.t("Idle");
|
||||
case "away_them":
|
||||
case "away_me":
|
||||
return i18n.t("Unavailable");
|
||||
default:
|
||||
return i18n.t("Offline");
|
||||
case "active":
|
||||
return i18n.t("Active");
|
||||
case "idle":
|
||||
return i18n.t("Idle");
|
||||
case "away_them":
|
||||
case "away_me":
|
||||
return i18n.t("Unavailable");
|
||||
default:
|
||||
return i18n.t("Offline");
|
||||
}
|
||||
};
|
||||
|
||||
@@ -63,14 +63,14 @@ exports.level = function (user_id) {
|
||||
const status = exports.buddy_status(user_id);
|
||||
|
||||
switch (status) {
|
||||
case "active":
|
||||
return 1;
|
||||
case "idle":
|
||||
return 2;
|
||||
case "away_them":
|
||||
return 3;
|
||||
default:
|
||||
return 3;
|
||||
case "active":
|
||||
return 1;
|
||||
case "idle":
|
||||
return 2;
|
||||
case "away_them":
|
||||
return 3;
|
||||
default:
|
||||
return 3;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user