X-Git-Url: https://git.auder.net/assets/icon_infos.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FSettings.vue;h=117133d18c62e3e32b977feebc33ff338996277e;hb=8b405c81769b822dd2d0db28c613da259f68c071;hp=b9a2b6374fdd074cf9c031f0f5a4691c6c88ffaa;hpb=dfeb96ea90e880a2557cbb5953dbb7258c912283;p=vchess.git
diff --git a/client/src/components/Settings.vue b/client/src/components/Settings.vue
index b9a2b637..117133d1 100644
--- a/client/src/components/Settings.vue
+++ b/client/src/components/Settings.vue
@@ -1,29 +1,38 @@
div
input#modalSettings.modal(type="checkbox")
- div(role="dialog" data-checkbox="modalSettings"
- aria-labelledby="settingsTitle")
- .card.smallpad(@change="updateSettings")
+ div(
+ role="dialog"
+ data-checkbox="modalSettings"
+ )
+ .card(@change="updateSettings($event)")
label.modal-close(for="modalSettings")
- fieldset
- label(for="setHints") {{ st.tr["Show possible moves?"] }}
- input#setHints(type="checkbox" v-model="st.settings.hints")
- fieldset
- label(for="setHighlight")
- | {{ st.tr["Highlight last move and checks?"] }}
- input#setHighlight(type="checkbox" v-model="st.settings.highlight")
- fieldset
- label(for="setBcolor") {{ st.tr["Board colors"] }}
- select#setBcolor(v-model="st.settings.bcolor")
- option(value="lichess") {{ st.tr["brown"] }}
- option(value="chesscom") {{ st.tr["green"] }}
- option(value="chesstempo") {{ st.tr["blue"] }}
- fieldset
- label(for="setSound") {{ st.tr["Play sounds?"] }}
- select#setSound(v-model="st.settings.sound")
- option(value="0") {{ st.tr["None"] }}
- option(value="1") {{ st.tr["New game"] }}
- option(value="2") {{ st.tr["All"] }}
+ form
+ fieldset
+ label(for="setHints") {{ st.tr["Show possible moves?"] }}
+ input#setHints(
+ type="checkbox"
+ v-model="st.settings.hints"
+ )
+ fieldset
+ label(for="setHighlight")
+ | {{ st.tr["Highlight last move and checks?"] }}
+ input#setHighlight(
+ type="checkbox"
+ v-model="st.settings.highlight"
+ )
+ fieldset
+ label(for="setBcolor") {{ st.tr["Board colors"] }}
+ select#setBcolor(v-model="st.settings.bcolor")
+ option(value="lichess") {{ st.tr["brown"] }}
+ option(value="chesscom") {{ st.tr["green"] }}
+ option(value="chesstempo") {{ st.tr["blue"] }}
+ fieldset
+ label(for="setSound") {{ st.tr["Play sounds?"] }}
+ select#setSound(v-model="st.settings.sound")
+ option(value="0") {{ st.tr["None"] }}
+ option(value="1") {{ st.tr["New game"] }}
+ option(value="2") {{ st.tr["All"] }}
+
+