projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes + draft newmove pingback logic (unfinished, not working)
[vchess.git]
/
client
/
src
/
components
/
GameList.vue
diff --git
a/client/src/components/GameList.vue
b/client/src/components/GameList.vue
index
39ad9bf
..
98eaf33
100644
(file)
--- a/
client/src/components/GameList.vue
+++ b/
client/src/components/GameList.vue
@@
-134,7
+134,13
@@
export default {
return res;
},
deleteGame: function(game, e) {
return res;
},
deleteGame: function(game, e) {
- if (game.score != "*") {
+ if (
+ game.score != "*" &&
+ game.players.some(p =>
+ p.sid == this.st.user.sid ||
+ p.uid == this.st.user.id
+ )
+ ) {
if (confirm(this.st.tr["Remove game?"])) {
GameStorage.remove(
game.id,
if (confirm(this.st.tr["Remove game?"])) {
GameStorage.remove(
game.id,