projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert all remaining tabs by 2spaces
[vchess.git]
/
client
/
src
/
components
/
Language.vue
diff --git
a/client/src/components/Language.vue
b/client/src/components/Language.vue
index
5c7e1e5
..
d35d8e2
100644
(file)
--- a/
client/src/components/Language.vue
+++ b/
client/src/components/Language.vue
@@
-7,7
+7,7
@@
div
"fr": "Français",
};
input#modalLang.modal(type="checkbox")
"fr": "Français",
};
input#modalLang.modal(type="checkbox")
- div(role="dialog")
+ div(role="dialog"
data-checkbox="modalLang"
)
#language.card
label.modal-close(for="modalLang")
form(@change="setLanguage")
#language.card
label.modal-close(for="modalLang")
form(@change="setLanguage")
@@
-29,7
+29,7
@@
export default {
};
},
mounted: function() {
};
},
mounted: function() {
- //
TODO
: better style would be in pug directly, but how?
+ //
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;
document.querySelectorAll("#langSelect > option").forEach(opt => {
if (opt.value == this.st.lang)
opt.selected = true;
@@
-40,6
+40,6
@@
export default {
localStorage["lang"] = e.target.value;
store.setLanguage(e.target.value);
},
localStorage["lang"] = e.target.value;
store.setLanguage(e.target.value);
},
-
},
+ },
};
</script>
};
</script>