From d639b82a84af667908ccdda522cb1f94fddf55e5 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Sat, 9 May 2020 22:51:19 +0200 Subject: [PATCH] Cosmetics --- client/src/components/UpsertUser.vue | 2 +- client/src/components/UserBio.vue | 4 ++-- server/routes/users.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/components/UpsertUser.vue b/client/src/components/UpsertUser.vue index 24e3c410..e5b8c79b 100644 --- a/client/src/components/UpsertUser.vue +++ b/client/src/components/UpsertUser.vue @@ -4,7 +4,7 @@ div type="checkbox" @change="trySetEnterTime($event)" ) - div#upsertDiv( + #upsertDiv( role="dialog" data-checkbox="modalUser" ) diff --git a/client/src/components/UserBio.vue b/client/src/components/UserBio.vue index 4631e830..89c146ab 100644 --- a/client/src/components/UserBio.vue +++ b/client/src/components/UserBio.vue @@ -4,13 +4,13 @@ div(:id="'player_' + uid") :id="'modalBio_' + uid" type="checkbox" ) - div.bio-div( + .bio-div( role="dialog" :data-checkbox="'modalBio_' + uid" ) .card div(v-if="st.user.id == uid") - div.buttons + .buttons button(@click="toggleEdit()") | {{ st.tr[modeEdit ? "Cancel" : "Edit"] }} button( diff --git a/server/routes/users.js b/server/routes/users.js index 7d886b2c..dfe2fa2e 100644 --- a/server/routes/users.js +++ b/server/routes/users.js @@ -83,7 +83,7 @@ router.get("/whoami", access.ajax, (req,res) => { router.get("/users", access.ajax, (req,res) => { const ids = req.query["ids"]; // NOTE: slightly too permissive RegExp - if (ids.match(/^([0-9]+,?)+$/)) { + if (!!ids && !!ids.match(/^([0-9]+,?)+$/)) { UserModel.getByIds(ids, (err, users) => { res.json({ users: users }); }); -- 2.44.0