X-Git-Url: https://git.auder.net/js/rpsls.js?a=blobdiff_plain;f=client%2Fsrc%2FApp.vue;h=4b8e447cb2e385fe14b313005f0a9c3d2396d5cc;hb=bb7dd7db3df3d1a0445dcd5e0840a2ce79b53297;hp=4ebc6e710f031929108c89d57f8ca716fd307186;hpb=a6b9b86c580cefd81a930116f7e86610ece99887;p=vchess.git diff --git a/client/src/App.vue b/client/src/App.vue index 4ebc6e71..4b8e447c 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -30,8 +30,7 @@ .clickable(onClick="doClick('modalSettings')") | {{ st.tr["Settings"] }} .clickable#flagContainer(onClick="doClick('modalLang')") - img(v-if="!!st.lang" - :src="require(`@/assets/images/flags/${st.lang}.svg`)") + img(v-if="!!st.lang" :src="flagImage") router-view .row .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 @@ -63,6 +62,15 @@ export default { st: store.state, }; }, +// // TODO: $route: ... +// gameRef: function() { +// this.loadGame(); +// }, + computed: { + flagImage: function() { + return `/images/flags/${this.st.lang}.svg`; + }, + }, };