diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-10-28 14:04:02 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-11-04 21:36:04 +0300 |
commit | bb27d1f9dda35eebcff3101fb14b38acf8e0736b (patch) | |
tree | f98244998d470a3363a89d99757ff47159e2619a /src/components/SessionList.vue | |
parent | c0060f3aa6a45a6bd41d76863e175f1fb3d70d4a (diff) |
Adjust to new eslint rules
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/components/SessionList.vue')
-rw-r--r-- | src/components/SessionList.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/SessionList.vue b/src/components/SessionList.vue index c2d97605e..67ca08d8a 100644 --- a/src/components/SessionList.vue +++ b/src/components/SessionList.vue @@ -70,8 +70,8 @@ export default { computed: { editorsTooltip() { if (this.sessionsPopover.length > 0) { - let first = this.activeSessions.slice(0, 3).map((session) => session.guestName ? session.guestName : session.displayName).join(', ') - let others = this.activeSessions.slice(3).length + const first = this.activeSessions.slice(0, 3).map((session) => session.guestName ? session.guestName : session.displayName).join(', ') + const others = this.activeSessions.slice(3).length return first + ' ' + n('text', 'and %n other editor', 'and %n other editors', others) } return this.activeSessions.slice(0, 3).map((session) => session.guestName ? session.guestName : session.displayName).join(', ') |