From: Benjamin Auder Date: Sat, 9 May 2020 20:51:19 +0000 (+0200) Subject: Cosmetics X-Git-Url: https://git.auder.net/doc/current/%7B%7B%20asset%28%27mixstore/DESCRIPTION?a=commitdiff_plain;h=d639b82a84af667908ccdda522cb1f94fddf55e5;p=vchess.git Cosmetics --- 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 }); });