projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Started code review + some fixes (unfinished)
[vchess.git]
/
client
/
src
/
components
/
Language.vue
diff --git
a/client/src/components/Language.vue
b/client/src/components/Language.vue
index
e724355
..
bdfd341
100644
(file)
--- a/
client/src/components/Language.vue
+++ b/
client/src/components/Language.vue
@@
-25,21
+25,20
@@
export default {
name: "my-language",
data: function() {
return {
name: "my-language",
data: function() {
return {
- st: store.state
,
+ st: store.state
};
},
mounted: function() {
// NOTE: better style would be in pug directly, but how?
document.querySelectorAll("#langSelect > option").forEach(opt => {
};
},
mounted: function() {
// NOTE: better style would be in pug directly, but how?
document.querySelectorAll("#langSelect > option").forEach(opt => {
- if (opt.value == this.st.lang)
- opt.selected = true;
+ if (opt.value == this.st.lang) opt.selected = true;
});
},
methods: {
setLanguage: function(e) {
localStorage["lang"] = e.target.value;
store.setLanguage(e.target.value);
});
},
methods: {
setLanguage: function(e) {
localStorage["lang"] = e.target.value;
store.setLanguage(e.target.value);
- }
,
- }
,
+ }
+ }
};
</script>
};
</script>