Files
onefinity-firmware/src/js/modbus-reg.js
2023-02-12 14:01:05 +05:30

21 lines
429 B
JavaScript

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