Skip to content

Commit

Permalink
Fix return review
Browse files Browse the repository at this point in the history
  • Loading branch information
callemand committed Oct 19, 2023
1 parent a79b3d5 commit 8de9a95
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions front/src/config/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,9 @@
"minute": "minutes",
"hour": "hours",
"day": "days"
},
"gladysStart": {
"description": "This scene will be executed each time Gladys starts"
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions front/src/config/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1661,6 +1661,9 @@
"minute": "minutes",
"hour": "heures",
"day": "jours"
},
"gladysStart": {
"description": "Cette scène sera executé a chaque démarage de Gladys"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import { Component } from 'preact';
import { connect } from 'unistore/preact';
import { Text } from 'preact-i18n';

class SunriseSunsetTrigger extends Component {
class GladysStartTrigger extends Component {
render({}, {}) {
return (
<div>
<div class="row">
<div class="col-sm-12">COUCOU //TODO</div>
<div class="col-sm-12">
<Text id="editScene.triggersCard.gladysStart.description" />
</div>
</div>
</div>
);
}
}

export default connect('', {})(SunriseSunsetTrigger);
export default connect('', {})(GladysStartTrigger);
2 changes: 0 additions & 2 deletions server/test/lib/scene/scene.checkTrigger.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,6 @@ describe('scene.checkTrigger', () => {
triggers: [
{
type: EVENTS.SYSTEM.START,
area: 'area-1',
user: 'tony',
},
],
});
Expand Down

0 comments on commit 8de9a95

Please sign in to comment.