Colour propery box on input, flash green on update, only modal notify if value is not set exactly
This commit is contained in:
parent
80ee303ac9
commit
212b8fe062
3 changed files with 90 additions and 9 deletions
|
|
@ -10,8 +10,10 @@
|
|||
v-model="backgroundDetectorStatus.settings"
|
||||
:data-schema="backgroundDetectorStatus.settings_schema"
|
||||
label=""
|
||||
:animate="animate"
|
||||
@requestUpdate="readSettings"
|
||||
@sendValue="writeSettings"
|
||||
@animationShown="resetAnimate"
|
||||
/>
|
||||
</div>
|
||||
</li>
|
||||
|
|
@ -57,6 +59,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
backgroundDetectorStatus: undefined,
|
||||
animate: false
|
||||
};
|
||||
},
|
||||
|
||||
|
|
@ -87,6 +90,11 @@ export default {
|
|||
"update_detector_settings",
|
||||
{"data": requestedValue}
|
||||
);
|
||||
this.animate = true;
|
||||
this.readSettings();
|
||||
},
|
||||
resetAnimate: function() {
|
||||
this.animate = false;
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue