v-show="display=='import'"
ref="importgames"
:games="importGames"
+ :show-both="true"
@show-game="showGame"
)
button#loadMoreBtn(
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);
};
</script>
-<style lang="sass">
+<style lang="sass" scoped>
.active
color: #42a983
.tabbtn
background-color: #f9faee
-table.game-list
- max-height: 100%
-
button#loadMoreBtn
display: block
margin: 0 auto
.somethingnew
background-color: #c5fefe !important
</style>
+
+<!-- Not scoped because acting on GameList -->
+<style lang="sass">
+table.game-list
+ max-height: 100%
+</style>