projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve Chakart computer play
[vchess.git]
/
client
/
src
/
views
/
MyGames.vue
diff --git
a/client/src/views/MyGames.vue
b/client/src/views/MyGames.vue
index
52e6dc3
..
a29e0e9
100644
(file)
--- a/
client/src/views/MyGames.vue
+++ b/
client/src/views/MyGames.vue
@@
-31,6
+31,7
@@
main
v-show="display=='import'"
ref="importgames"
:games="importGames"
v-show="display=='import'"
ref="importgames"
:games="importGames"
+ :show-both="true"
@show-game="showGame"
)
button#loadMoreBtn(
@show-game="showGame"
)
button#loadMoreBtn(
@@
-198,6
+199,8
@@
export default {
alert(this.st.tr["An error occurred. Try again!"]);
return;
}
alert(this.st.tr["An error occurred. Try again!"]);
return;
}
+ // NOTE: since a random new ID is generated for imported games,
+ // this error will not occur.
else alert(this.st.tr["The game was already imported"]);
}
this.$router.push("/game/" + game.id);
else alert(this.st.tr["The game was already imported"]);
}
this.$router.push("/game/" + game.id);
@@
-390,20
+393,23
@@
export default {
};
</script>
};
</script>
-<style lang="sass">
+<style lang="sass"
scoped
>
.active
.active
- color: #
42a983
+ color: #
388e3c
.tabbtn
background-color: #f9faee
.tabbtn
background-color: #f9faee
-table.game-list
- max-height: 100%
-
button#loadMoreBtn
display: block
margin: 0 auto
.somethingnew
button#loadMoreBtn
display: block
margin: 0 auto
.somethingnew
- background-color: #c5fefe !important
+ background-color: #90C4EC !important
+</style>
+
+<!-- Not scoped because acting on GameList -->
+<style lang="sass">
+table.game-list
+ max-height: 100%
</style>
</style>