From: Benjamin Auder Date: Fri, 8 Feb 2019 11:52:33 +0000 (+0100) Subject: Saving current state X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/css/store/pieces/cb.svg?a=commitdiff_plain;h=03608482744c433ad284f4b61e85b2e8cff4f5f3;p=vchess.git Saving current state --- diff --git a/client/src/App.vue b/client/src/App.vue index 59b0371a..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 @@ -67,6 +66,11 @@ export default { // gameRef: function() { // this.loadGame(); // }, + computed: { + flagImage: function() { + return `/images/flags/${this.st.lang}.svg`; + }, + }, }; diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue index a52e0cae..8951226b 100644 --- a/client/src/components/ChallengeList.vue +++ b/client/src/components/ChallengeList.vue @@ -1,34 +1,24 @@