Files
onefinity-firmware/src/js/modbus-reg.js
2023-01-22 09:11:33 +05:30

21 lines
476 B
JavaScript

"use strict";
module.exports = {
replace: true,
template: "#modbus-reg-view-template",
props: [ "index", "model", "template", "enable" ],
computed: {
has_user_value: function() {
const type = this.model["reg-type"];
return type.includes("write") || type.includes("fixed") || type.includes("scaled");
}
},
methods: {
change: function() {
this.$dispatch("input-changed");
}
}
};