mirror of
https://github.com/discourse/discourse.git
synced 2025-03-27 19:25:44 +08:00
prettier linting fix
This commit is contained in:
parent
37fa7775f1
commit
2cc195f3d9
@ -107,7 +107,12 @@ export default Ember.Controller.extend(
|
|||||||
@computed("showAllAuthTokens", "model.user_auth_tokens")
|
@computed("showAllAuthTokens", "model.user_auth_tokens")
|
||||||
authTokens(showAllAuthTokens, tokens) {
|
authTokens(showAllAuthTokens, tokens) {
|
||||||
tokens.sort(
|
tokens.sort(
|
||||||
(a, b) => (a.is_active ? -1 : b.is_active ? 1 : b.seen_at.localeCompare(a.seen_at))
|
(a, b) =>
|
||||||
|
a.is_active
|
||||||
|
? -1
|
||||||
|
: b.is_active
|
||||||
|
? 1
|
||||||
|
: b.seen_at.localeCompare(a.seen_at)
|
||||||
);
|
);
|
||||||
|
|
||||||
return showAllAuthTokens
|
return showAllAuthTokens
|
||||||
|
Loading…
x
Reference in New Issue
Block a user