diff --git a/front/src/config/i18n/de.json b/front/src/config/i18n/de.json index 1b26ca318a..6981e257d3 100644 --- a/front/src/config/i18n/de.json +++ b/front/src/config/i18n/de.json @@ -1601,12 +1601,16 @@ }, "blinkLights": { "label": "Wählen Sie die Lichter aus, die Sie zum Blinken bringen möchten", - "description": "Konfigurieren Sie die Verzögerung zwischen jedem Blinken und die Anzahl der Blinksignale", - "timesToBlink": { + "description": "Stellen Sie die Dauer und die Geschwindigkeit des Blinkens ein", + "blinkingTime": { + "label": "Dauer (in Sekunden)", "placeholder": "3" }, - "waitingTime": { - "placeholder": "200" + "blinkingSpeed": { + "label": "Modus", + "slow": "Langsam", + "medium": "Mittel", + "fast": "Schnell" } }, "turnOnSwitches": { diff --git a/front/src/config/i18n/en.json b/front/src/config/i18n/en.json index 1b273987e7..14d0a0eb75 100644 --- a/front/src/config/i18n/en.json +++ b/front/src/config/i18n/en.json @@ -1603,12 +1603,16 @@ }, "blinkLights": { "label": "Select the lights you want to make blink", - "description": "Configure delay between each blink and number of blinks", - "timesToBlink": { + "description": "Configure blinking duration and speed", + "blinkingTime": { + "label": "Duration (in seconds)", "placeholder": "3" }, - "waitingTime": { - "placeholder": "200" + "blinkingSpeed": { + "label": "Mode", + "slow": "Slow", + "medium": "Medium", + "fast": "Fast" } }, "turnOnSwitches": { diff --git a/front/src/config/i18n/fr.json b/front/src/config/i18n/fr.json index 7e3817cc73..2ed308faa4 100644 --- a/front/src/config/i18n/fr.json +++ b/front/src/config/i18n/fr.json @@ -1605,12 +1605,16 @@ }, "blinkLights": { "label": "Sélectionnez les lumières que vous souhaitez faire clignoter", - "description": "Réglez le nombre de fois et le temps entre chaque clignotement", - "timesToBlink": { - "placeholder": "3 fois" + "description": "Réglez la durée et la vitesse de clignotement", + "blinkingTime": { + "label": "Durée (en secondes)", + "placeholder": "3" }, - "waitingTime": { - "placeholder": "200ms" + "blinkingSpeed": { + "label": "Mode", + "slow": "Lent", + "medium": "Normal", + "fast": "Rapide" } }, "turnOnSwitches": { diff --git a/front/src/routes/scene/edit-scene/actions/BlinkLightParams.jsx b/front/src/routes/scene/edit-scene/actions/BlinkLightParams.jsx index 8f74ff1925..7454206b14 100644 --- a/front/src/routes/scene/edit-scene/actions/BlinkLightParams.jsx +++ b/front/src/routes/scene/edit-scene/actions/BlinkLightParams.jsx @@ -29,13 +29,13 @@ class BlinkLight extends Component { this.props.updateActionProperty(this.props.columnIndex, this.props.index, 'devices', []); } }; - handleChangeTimesToBlink = e => { + handleChangeBlinkingTime = e => { let newValue = Number.isInteger(parseInt(e.target.value, 10)) ? parseInt(e.target.value, 10) : 0; - this.props.updateActionProperty(this.props.columnIndex, this.props.index, 'timesToBlink', newValue); + this.props.updateActionProperty(this.props.columnIndex, this.props.index, 'blinkingTime', newValue); }; - handleChangeWaitingTime = e => { - let newValue = Number.isInteger(parseInt(e.target.value, 10)) ? parseInt(e.target.value, 10) : 0; - this.props.updateActionProperty(this.props.columnIndex, this.props.index, 'waitingTime', newValue); + handleChangeBlinkingSpeed = e => { + console.log(e.target.value); + this.props.updateActionProperty(this.props.columnIndex, this.props.index, 'blinkingSpeed', e.target.value); }; refreshSelectedOptions = nextProps => { const selectedOptions = []; @@ -64,57 +64,59 @@ class BlinkLight extends Component { this.refreshSelectedOptions(nextProps); } - render(props, { selectedOptions, deviceOptions }) { + render(props, { selectedOptions, deviceOptions, blinkingSpeed }) { return ( -