issue #654 implemented, waiting for validation

parent aa9d9dae
......@@ -157,8 +157,8 @@ module.exports = {
categories: true,
input_feedback: {
vibration: true,
click: false,
read: false,
beep: false,
highlight: false,
},
input_selection: {
......@@ -189,7 +189,7 @@ module.exports = {
if (typeof validAttributes.input_feedback !== 'object') {
delete validAttributes.input_feedback;
} else {
['vibration', 'click', 'read', 'highlight'].forEach((attribute) => {
['vibration', 'read', 'highlight', 'beep'].forEach((attribute) => {
if (typeof validAttributes.input_feedback[attribute] !== 'boolean') {
delete validAttributes.input_feedback[attribute];
}
......
......@@ -213,7 +213,6 @@
</div>
</div>
</fieldset>
<!-- DISABLED, NOT IMPLEMENTED YET
<fieldset>
<legend>{{ 'feedback_picto' | translate }}</legend>
<div class="input-group">
......@@ -228,11 +227,11 @@
<div class="input-group">
<span class="input-group-addon">
<input type="checkbox"
id="studentSetupClickOnTouch"
ng-model="studentData.attributes.input_feedback.click"
id="studentSetupBeepOnTouch"
ng-model="studentData.attributes.input_feedback.beep"
ng-change="update_attributes()">
</span>
<label class="form-control" for="studentSetupClickOnTouch">{{ 'click' | translate }}</label>
<label class="form-control" for="studentSetupBeepOnTouch">{{ 'beep' | translate }}</label>
</div>
<div class="input-group">
<span class="input-group-addon">
......@@ -255,6 +254,7 @@
</label>
</div>
</fieldset>
<!-- DISABLED, NOT IMPLEMENTED YET
<fieldset>
<legend>{{ 'input_selection' | translate }}</legend>
<div class="input-group">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment